会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ThisCall
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
112
113
114
115
116
117
118
119
120
···
129
下一页
2017年11月8日
小程序 数据缓存
摘要: Page( { data: { // text:"这是一个页面" storageContent: '', storageSyncContent: '' }, onLoad: function (options) { // 页面初始化 options为页面跳转所带来的参数 }, /** * 异步存储
阅读全文
posted @ 2017-11-08 11:40 ThisCall
阅读(1603)
评论(0)
推荐(0)
2017年11月7日
小程序 获取用户的openid
摘要: 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)
2017年11月6日
小程序 通用请求
摘要: 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)
小程序 上啦下拉刷新window配置
摘要: "enablePullDownRefresh": "true" /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () {
阅读全文
posted @ 2017-11-06 10:01 ThisCall
阅读(560)
评论(0)
推荐(0)
2017年11月4日
微信小程序 功能函数 将对象的键添加到数组 (函数深入)
摘要: // 将对象的键添加到数组 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()的用法(网络复制过来自用)
摘要: 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
下一页
公告