上一页 1 ··· 5 6 7 8 9
摘要: <label for="word"> <input type="checkbox" id='word'> <span id='word'>hello word</span> </label> 注意:这里input 的id与span 的id只要保持一致就可以实现该功能! 阅读全文
posted @ 2020-05-18 15:48 有肌肉的小眼睛 阅读(232) 评论(0) 推荐(0)
摘要: var whiteList = ['openI', 'rivacy'] var values = whiteList.map(item => wx.getStorageSync(item)) wx.clearStorageSync() whiteList.forEach((item, index)  阅读全文
posted @ 2020-05-08 09:44 有肌肉的小眼睛 阅读(185) 评论(0) 推荐(0)
摘要: for(var i in individual){ if(individual[i] null){ individual[i]='' } } 阅读全文
posted @ 2020-04-23 19:26 有肌肉的小眼睛 阅读(314) 评论(0) 推荐(0)
摘要: // const science = (num) => { // var str = ''; // if(typeof num == 'number') { // str = num.toString(); // } else if(typeof num == 'string'){ // str = 阅读全文
posted @ 2020-04-03 16:30 有肌肉的小眼睛 阅读(149) 评论(0) 推荐(0)
摘要: html页面 <view class="map" bindtap='map'> 定位 </view> js页面 map() { // 在组件实例进入页面节点树时执行 var _this = this wx.getSetting({ success(res) { // 1. scope.userLoc 阅读全文
posted @ 2020-04-02 15:26 有肌肉的小眼睛 阅读(4179) 评论(0) 推荐(0)
摘要: index.wxml页面 <view class="userinfo"> <text>相机拍照功能</text> <button class="photo" bindtap="takePhoto">点击拍照</button> </view> index.js页面 takePhoto(){ wx.na 阅读全文
posted @ 2020-03-19 16:49 有肌肉的小眼睛 阅读(791) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9