上一页 1 ··· 112 113 114 115 116 117 118 119 120 ··· 129 下一页
摘要: Page( { data: { // text:"这是一个页面" storageContent: '', storageSyncContent: '' }, onLoad: function (options) { // 页面初始化 options为页面跳转所带来的参数 }, /** * 异步存储 阅读全文
posted @ 2017-11-08 11:40 ThisCall 阅读(1603) 评论(0) 推荐(0)
摘要: wx.login({ success: res => { var code = res.code; //返回code // 小程序appid var appId = 'wxd751fc845c90fbd8'; // 小程序密钥 var secret = '6af97b8d384a4c6d7028b7 阅读全文
posted @ 2017-11-07 10:16 ThisCall 阅读(320) 评论(0) 推荐(0)
摘要: var that=this; wx.request({ url: 'http://www.didu86.com/Clothes-manager-web/queryiShopping', data: { appkey: '5e5ju20na345sdf4nw361qb9789asdf', key: " 阅读全文
posted @ 2017-11-06 14:48 ThisCall 阅读(188) 评论(0) 推荐(0)
摘要: "enablePullDownRefresh": "true" /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { 阅读全文
posted @ 2017-11-06 10:01 ThisCall 阅读(560) 评论(0) 推荐(0)
摘要: // 将对象的键添加到数组 var arr = Object.keys(site); //英文 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys 中文 https: 阅读全文
posted @ 2017-11-04 18:04 ThisCall 阅读(1042) 评论(0) 推荐(0)
摘要: // 商品详情页跳转函数 detailInto: function (e) { // console.log() var change = e.currentTarget.dataset.id; wx.navigateTo({ url: '../detail/detail?id=' + change 阅读全文
posted @ 2017-11-04 17:13 ThisCall 阅读(2157) 评论(0) 推荐(0)
摘要: // 购物车删除 deleteList(e) { const index = e.currentTarget.dataset.index; let carts = this.data.carts; carts.splice(index, 1); // 删除购物车列表里这个商品 this.setDat 阅读全文
posted @ 2017-11-04 15:28 ThisCall 阅读(5382) 评论(0) 推荐(0)
摘要: <view class="container"> <!-- menue --> <view class="aside flex"> <block wx:key="navList" wx:for="{{navList}}"> <view class="type-nav flexca" bindtap= 阅读全文
posted @ 2017-11-04 11:31 ThisCall 阅读(1031) 评论(0) 推荐(0)
摘要: // "2017/10/1 00:00" kaiShi: function (a) { var that = this; function nowTime() { var dateTime = new Date(); var timestamp = Date.parse(new Date()); v 阅读全文
posted @ 2017-11-04 10:26 ThisCall 阅读(2119) 评论(0) 推荐(1)
摘要: js中获取时间new date()的用法 获取时间: 1 var myDate = new Date();//获取系统当前时间 获取特定格式的时间: 1 myDate.getYear(); //获取当前年份(2位) 2 myDate.getFullYear(); //获取完整的年份(4位,1970- 阅读全文
posted @ 2017-11-04 10:24 ThisCall 阅读(32287) 评论(0) 推荐(0)
上一页 1 ··· 112 113 114 115 116 117 118 119 120 ··· 129 下一页