uni-app
阔爱滴二狗子
这个作者很懒,什么都没留下…
展开
-
vue自定义长按事件
html代码:<image class="logo-img" src="../../static/imgs/login/[email protected]" alt @touchstart="gtouchstart()" @touchend="gtouchend()" @touchmove="gtouchmove()"/>data里面定义一下:data(){ retu...原创 2020-04-11 10:21:54 · 401 阅读 · 0 评论 -
uni.navigateTo传递对象类型的参数
传递页面代码:visualPage(){ var that=this var editItem=that.pageModel uni.navigateTo({url:'/pages/visualPage/index?editItem='+encodeURIComponent(JSON.stringify(editItem))})...原创 2020-03-10 18:50:21 · 20828 阅读 · 1 评论 -
记录uni-app开发过程中的坑~
1, that or this问题描述:在data中引入的变量,却一直提示undefined is not an object,转换了多次变量类型也毫无作用,找了好久才发现是作用域的问题!!!一定要牢记。var that=this uni.getStorage({ key: 'seal_params', success: function (res) { ...原创 2020-03-07 18:37:38 · 529 阅读 · 0 评论