摘要: Page({ data: { nums:[ {num:11}, {num:22} ] }, imgchange: function (event) { //获取当前item的下标id 通过currentTarget.id var id = event.currentTarget.id; consol 阅读全文
posted @ 2018-05-18 17:08 小毛驴 阅读(4518) 评论(0) 推荐(0) 编辑
摘要: //获取已经打开的页面的数组 var pages = getCurrentPages(); //获取上一个页面的所有的方法和data中的数据 var lastpage = pages[pages.length - 2] //改变上一个页面中的data中的数据 lastpage.setData({ f 阅读全文
posted @ 2018-05-18 16:20 小毛驴 阅读(401) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_35713752/article/details/78109084 // url:网络请求的url method:网络请求方式 data:请求参数 message:提示信息 success:成功的回调函数 fail:失败的回调//pages/util 阅读全文
posted @ 2018-05-18 11:45 小毛驴 阅读(188) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/shunxing/articles/6971648.html input里的value会在浮层上面的,要解决这一问题还是很简单的,在小程序中input有个placeholder-class属性,我们只要写一个类,规定它的z-index:1只要比浮层权重 阅读全文
posted @ 2018-05-18 10:11 小毛驴 阅读(157) 评论(0) 推荐(0) 编辑