11 2018 档案

摘要:每次调用结束后,都会将动画重置,这是重复调用的核心! 阅读全文
posted @ 2018-11-22 15:49 雁字回头月满西楼 阅读(4693) 评论(0) 推荐(0)
摘要:1.setData设置成功后执行事件的方法 this.setData({ userInfo: res.userInfo, hasUserInfo: true }, function () { that.checkBindHD() }) 2.在初始的data变量中直接进行读取缓存操作存在赋值失败的情况 阅读全文
posted @ 2018-11-22 10:33 雁字回头月满西楼 阅读(1140) 评论(0) 推荐(0)
摘要:var pages = getCurrentPages();//获取页面栈 if (pages.length > 1) { //上一个页面实例对象 var prePage = pages[pages.length - 2]; //调用上一个页面的onShow方法 prePage.onShow() } 阅读全文
posted @ 2018-11-21 14:25 雁字回头月满西楼 阅读(13421) 评论(0) 推荐(0)
摘要:/*单行文本的溢出显示省略号*/ width: 200px; overflow:hidden; text-overflow:ellipsis; white-space: nowrap;/*加宽度width属来兼容部分浏览器*/ /*多行文本溢出显示省略号*/ width: 220px; height: 58px; overflow:hidden; text-overflow:ellips... 阅读全文
posted @ 2018-11-02 10:46 雁字回头月满西楼 阅读(184) 评论(0) 推荐(0)