uniapp
rich@cai
这个作者很懒,什么都没留下…
展开
-
小程序更新
onLaunch () { if (wx.canIUse('getUpdateManager')) { const updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(function (res) { if (res.hasUpdate) { updateManager.onUpdateReady(function () { w..原创 2021-03-09 16:53:37 · 72 阅读 · 0 评论 -
小程序 组件placeholder-class不生效
uniapp 组件样式里设置了scoped,导致给input和textarea设置的placeholder-class无效,placeholder-style不受影响参考:https://ask.dcloud.net.cn/question/89282原创 2020-11-07 17:36:50 · 2567 阅读 · 0 评论 -
小程序 uni-app input 输入框被键盘遮挡部分
解决办法是:添加 cursor-spacing 指定光标与键盘的距离,取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离原创 2020-11-07 17:10:56 · 1539 阅读 · 0 评论 -
Invalid attempt to spread non-iterable instance.
1150 Uncaught (in promise) TypeError: Invalid attempt to spread non-iterable instance.In order to be iterable, non-array objects must have a [Symbol.iterator]() method. at _nonIterableSpread (pages-live-room-live-room.js:1150) at _toConsumableArra原创 2020-09-12 10:13:20 · 2178 阅读 · 4 评论 -
uniapp h5项目调试 Invalid Host header
uniapp h5项目调试"h5" : { "router" : { "mode" : "history" }, "devServer" : { "https" : false, "disableHostCheck": true } }需要再manifest.json 里的h5的配置devServer “disableHostCheck”: true...原创 2020-09-11 17:12:37 · 2074 阅读 · 1 评论 -
uniappp renderjs-echarts
hash模式history模式原创 2020-08-28 21:07:10 · 546 阅读 · 0 评论