摘要:为了阻止ios端小程序页面可以上下拖动 需要在对应的json文件里面配置 "disableScroll":true
阅读全文
摘要:其实配置不应该写在app.json里面,而是uniapp的工程文件manifest.json里面。 /* 小程序特有相关 */ "mp-weixin" : { "appid" : "wx57c0d6caade2c2c7", "setting" : { "urlCheck" : false, "pos
阅读全文
摘要:由来:我这个是uniapp为了兼容小程序,拆包后到微信小程序运行不起来报的错 原因是:导入项目后project.config.json文件被微信开发者工具修改。 解决:缺少代码:“miniprogramRoot”: "./unpackage/dist/dev/mp-weixin"。“miniprog
阅读全文
摘要:if (this.unlandfile.length) { var index = this.unlandfile.findIndex(item1 => imagepath.path == item1.path) if (index != -1) { this.unlandfile.splice(i
阅读全文
摘要:反转对象的键值对,而不会改变它。 使用 Object.keys() 和 Array.reduce() 来反转对象的键值对。 const invertKeyValues = obj => Object.keys(obj).reduce((acc, key) => { acc[obj[key]] = k
阅读全文
摘要:Failed to load image http://xxx xxxxx: the server responded with a status of 404 (HTTP/1.1 404 Not Found) From serverhttp: //xxx xxxxx: 我们送从后台拿数据使用wx.
阅读全文
摘要:<template> <view class="Container"> <view class="PaintRegion"> <!-- 画板区域 --> <canvas class="myCanvas" canvas-id="myCanvas" @touchstart="touchStart" @t
阅读全文
摘要:Object.values(item); 只解析对象的value Object.key(item); 只解析对象的key Object.entries(item); 解析对象的key和value
阅读全文
摘要:radio .wx-radio-input { width: 28rpx; height: 28rpx; margin-right: 15rpx; border-radius: 50%; } /*radio选中后样式 */ radio .wx-radio-input.wx-radio-input-c
阅读全文
摘要:动态绑定class属性 :class="[isActive==index?'active':'otherActiveClass']"
阅读全文
摘要:1、uni.navigateTo保留当前页面,跳转到应用内的某个页面,使用uni.navigateBack可以返回到原页面。 2、uni.redirectTo 关闭当前页面,跳转到应用内的某个页面。 3、uni.reLaunch 关闭所有页面,打开到应用内的某个页面。 4、uni.switchTab
阅读全文