随记
超英
这个作者很懒,什么都没留下…
展开
-
props 警告
prors 父传子出现这种警告Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop b...原创 2019-03-22 14:38:26 · 369 阅读 · 0 评论 -
检测网络异常
在main.js中window.onoffline = function() { // onoffline断网,ononline网络连接 weui.toast('网络异常,请检查网络!', {className: 'toast-no-success'})}原创 2019-03-28 17:02:43 · 1185 阅读 · 0 评论