2017年1月23日

摘要: onLoad:function(options){ console.log(options) html <view class="list bindtap=onload New data-key=""{{item key}}" js onLoad News:function(e){ console. 阅读全文
posted @ 2017-01-23 22:52 aivnfjgj 阅读(10448) 评论(1) 推荐(0)
摘要: 用户操作事件 currentTarget 事件绑定的当前组件 bindtap 绑定事件,事件可以绑定在组件上,当达到触发事件,就会执秆逻辑层中对应的事件处理函数 touchstart 手指触摸动作开始 touchend 手指触摸动作结束 touchmove 手指触摸后移动 touchmove 手指触 阅读全文
posted @ 2017-01-23 21:46 aivnfjgj 阅读(237) 评论(0) 推荐(0)
摘要: 1. 注册小程序,获取appid http://www.wxapp-union.com/forum.php?mod=viewthread&tid=495 2.引入hotapp https://weixin.hotapp.cn/api/searchkey 1.App key:hotapp3348181 阅读全文
posted @ 2017-01-23 20:36 aivnfjgj 阅读(198) 评论(0) 推荐(0)
摘要: //index.js //获取应用实例 var app=getapp() hotapp=app.globalData.hotapp, PageIndex=1, lock=false; page({ data:{ desc:{ key:" ", vaule:() } }, onLoad:functio 阅读全文
posted @ 2017-01-23 18:55 aivnfjgj 阅读(299) 评论(0) 推荐(0)
摘要: onLoad:function(options){ console.log(options); that.setData{{list:res.data.items}}; //从列表页传来一个key <view class="list" bindtap=onload News data-key="{{ 阅读全文
posted @ 2017-01-23 16:58 aivnfjgj 阅读(108) 评论(0) 推荐(0)
摘要: 我在JS 中拼接html var html = '<a href="#" onclick="onedit("+ row.id + ")">编辑</a>'; 在项目中点击是后台报错 : missing ) after argument list 或者 Uncaught SyntaxError: Une 阅读全文
posted @ 2017-01-23 14:24 aivnfjgj 阅读(427) 评论(0) 推荐(0)

导航