随笔分类 -  微信小程序

摘要:<text decode="{{true}}">&nbsp;&nbsp;</text> 由于小程序有这需求,就是让显示的一段话首行空两个空格,所以网上查了一下, 顺便也小结一下: 在text标签中一定得加上decode="{{true}}",然后在需要显示空格的地方放&nbsp; 想空几个空格就放几 阅读全文
posted @ 2018-01-28 11:39 爱吃醋的工程师
摘要:current:表示当前需要预览的图片,(默认图片数组的第一张) urls:表示图片的数组 当然你需要在页面绑定事件 data-src:表示当前图片的路径,这个是必须,否则无法获取当前图片的src, 阅读全文
posted @ 2018-01-27 11:53 爱吃醋的工程师
摘要:.page { width: 100%; height: 100%; background: url(http://img.weiye.me/zcimgdir/album/file_597701fe8e3d9.png) no-repeat; background-size: cover; text-align: center; font-size: 14px; background-attach... 阅读全文
posted @ 2018-01-14 23:52 爱吃醋的工程师
摘要:onShareAppMessage: function (res) { if (res.from === 'button') { // 来自页面内转发按钮 console.log(res.target) } return { title: '阿拉比比 是碎片化、一站式、一体化校园移动门户,适用于学生和教师,集课表、成绩、考试、空教室、学... 阅读全文
posted @ 2018-01-14 12:50 爱吃醋的工程师