摘要: eg加粗文字文字文字(换行)文字文字##1##(问题序号)文字文字//通过ID,获取试题 function getQuestionById(list, id) { let data = {}; for(let n = 0 ;n(.*?)/, ""); if (RegExp.$1) { paragraphs.fragments.push({ type: 'title... 阅读全文
posted @ 2018-10-09 16:34 boyanh 阅读(288) 评论(0) 推荐(0) 编辑
摘要: //获取经纬度 getLocation() { let self = this; let list = []; let radius = this.data.currentScope // 获取当前半径 // envelopeList = ['445','666','1002'] self.data.envelopeList.forEach((item, ... 阅读全文
posted @ 2018-10-09 15:52 boyanh 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1 //定时器 2 countDown: function() { 3 let that = this; 4 let countDownNum = 5; //获取倒计时初始值 5 that.setData({ 6 countDownNum: countDownNum 7 }) 8 //如果将定时器设置在外面,那么... 阅读全文
posted @ 2018-10-09 15:48 boyanh 阅读(1160) 评论(0) 推荐(0) 编辑