- 博客(5)
- 收藏
- 关注
原创 vue中使用file 获取value值 图片回显 \\fakepath\\ 浏览器隐藏问题
function getPath(obj) { if (obj) { if (window.navigator.userAgent.indexOf("MSIE") >= 1) { obj.select(); return document.selection.createRange().text; } else if (window.navigator.userAgent.i.
2021-07-13 11:06:06 742 3
原创 图片路径转文件流
export const imageToBase64 = (img) => { // Vue.prototype.$imageToBase64 = img => { //定义全局 var canvas = document.createElement("canvas"); canvas.width = img.width; canvas.height = img.height; var ctx = canvas.getContext("2d"); .
2021-07-02 09:13:37 667
原创 mint ui loadmore组件上拉加载在真机调试时无法滚动
原因:主要原因是因为,没有一个可供滚动的容器,所以需要在组件外层设置一个盒子,宽度定好,并且设置好overflow:auto供手机端页面滚动,来触发滚动,然后就可以,注意:外层的盒子要设置高度,防止被撑开,如果被撑开就不会触发overflow:auto...
2021-05-25 13:52:06 252
原创 hbuilderX 打包app设置沉浸式状态栏
在plus中加入"statusbar" : { "immersed" : true /*沉浸式状态栏*/ },
2021-05-20 14:00:49 808
原创 Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (83
Node Sass尚不支持您当前的环境解决方法:1.先卸载当前的node-sass使用npm uninstall node-sass命令,并且删除node-modules文件夹2.!设置一下路径set SASS_BINARY_PATH=D:\win32-x64-64_binding.nodeset SASS_BINARY_PATH=D:\win32-x64-57_binding.node选择其中一个,通常是第一条3.然后再重新安装node-sass命令:npm ins
2021-05-19 17:00:36 805
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人