摘要:
https://ask.dcloud.net.cn/question/71626 https://ask.dcloud.net.cn/question/89910 https://www.freesion.com/article/9954674738/ https://blog.csdn.net/w 阅读全文
摘要:
https://open.alipay.com/channel/miniIndex.htm 傻瓜式操作 已入驻地址: https://openhome.alipay.com/platform/developerIndex.htm 支付宝公众平台: https://open.alipay.com/mi 阅读全文
摘要:
var that = this; /** * 获取当前设备的宽高 */ wx.getSystemInfo({ success: function (res) { that.setData({ clientHeight: res.windowHeight -30 }); } }); style="he 阅读全文
摘要:
目前发现的是不兼容 Array.from() 方法,导致 js 报错 解决方法: Array.prototype.slice.call() 已测,可以解决或Array.prototype.slice.apply() 阅读全文
摘要:
function getCookieByString(cookieName){ var start = document.cookie.indexOf(cookieName+'='); if (start == -1) return false; start = start+cookieName.l 阅读全文
摘要:
#bananerDis{ height: 550px; background: url("../images/bannerdisplay.jpg") no-repeat; background-position:center center; background-size: cover; } 阅读全文
摘要:
在使用uni.setStorageAsync 存数据时,key 不能带 _ 比如 area_code ,可以采用驼峰方法命名key值。 阅读全文
摘要:
方法1:js 封装 base64_img(base64){ let base64_str = base64.replace(/[\r\n]/g, ""); // base64 字符串 去掉换行 var array_buffer = wx.base64ToArrayBuffer(base64_str) 阅读全文
摘要:
点击事件控制类名。 阅读全文
摘要:
vue-router ≥3.0版本回调形式以及改成promise api的形式了,返回的是一个promise,如果路由地址跳转相同, 且没有捕获到错误,控制台始终会出现如图所示的警告 (注:3.0以下版本则不会出现以下警告!!!,因路由回调问题…) 方案一:安装vue-router3.0以下版本:先 阅读全文