上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 124 下一页
摘要: // "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 阅读(2108) 评论(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 阅读(32115) 评论(0) 推荐(0) 编辑
摘要: flex-align:默认是设置垂直方向的对齐方式,值: start、end、center、stretch、baseline。flex-pack:设置子元素之间如何分配多余空间,值:start、end、center、justify。flex-direction:设置子元素的排列方式, row、row 阅读全文
posted @ 2017-11-04 10:22 ThisCall 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 传数据 wx.navigateTo({ url: '/pages/newsdetail/newsdetail?tea=' + JSON.stringify(this.data.newlist[id-1]) }) 接数据 onLoad: function (options) { // 传过来的数据在此 阅读全文
posted @ 2017-11-03 11:25 ThisCall 阅读(376) 评论(0) 推荐(0) 编辑
摘要: // // 表单手机号 blurPhone: function (e) { var phone = e.detail.value; if (!(/^1[34578]\d{9}$/.test(phone))) { this.setData({ ajxtrue: false }) if (phone.l 阅读全文
posted @ 2017-10-27 16:41 ThisCall 阅读(9515) 评论(1) 推荐(0) 编辑
摘要: /* .banner-box .wx-swiper-dot{ width: 50rpx; border-radius: 0; } */ /* .banner-box .wx-swiper-dot{ width: 50rpx; border-radius: 0; } */ 阅读全文
posted @ 2017-10-27 11:51 ThisCall 阅读(977) 评论(0) 推荐(0) 编辑
摘要: <!-- 1分类菜单--> <view class='edition-menu flex'> <block wx:key="edmenu" wx:for="{{edmenu}}" wx:for-index="index"> <view class='flexcca' data-index='{{in 阅读全文
posted @ 2017-10-23 11:45 ThisCall 阅读(307) 评论(0) 推荐(0) 编辑
摘要: wxml bindtap='preview' js preview:function(){ wx.previewImage({ // current: '', // 当前显示图片的http链接 urls: ["https://timgsa.baidu.com/timg?image&quality=8 阅读全文
posted @ 2017-10-10 15:50 ThisCall 阅读(182) 评论(0) 推荐(0) 编辑
摘要: JS // 左侧菜单栏焦点控制函数 keyMenu: function (e) { var mlindex = e.currentTarget.dataset.mlindex; this.setData({ curNav: mlindex, }) }, //数据 curNav: 0, mrlist: 阅读全文
posted @ 2017-10-10 14:06 ThisCall 阅读(966) 评论(0) 推荐(0) 编辑
摘要: //注意:加给他爹的overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 阅读全文
posted @ 2017-10-09 15:20 ThisCall 阅读(285) 评论(0) 推荐(0) 编辑
上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 124 下一页