随笔分类 - 微信小程序
摘要:新建文件夹behavior,新建文件resList.js // resList.js const app = getApp() module.exports = Behavior({ behaviors: [], //引入其它的 behavior properties: {}, //properti
阅读全文
摘要:文件来源:https://developers.weixin.qq.com/community/develop/article/doc/0004686e3c8980b53469f176e51413 在小程序中引入 MobX 在小程序项目中,可以通过 npm 的方式引入 MobX 。 npm init
阅读全文
摘要:catchtap :点击不会冒泡bindtap : 点击冒泡data-ndnumType : 传递参数e.currentTarget.dataset : 获取参数 <view class="tab_item" bindtap='toMyNode' data-current="1"> <view cl
阅读全文
摘要:calendar.wxml <view class="flex box box-tb box-align-center"> <view class="calendar pink-color box box-tb"> <view class="top-handle fs28 box box-lr bo
阅读全文
摘要:需要安装 vant-weapp<view> <view class="inp-box"> <van-search value="{{ inpVal }}" placeholder="请输入名称" use-action-slot bind:change="searchInp"> <view style
阅读全文
摘要:<view> <button catchtouchmove="buttonMove" bindtouchstart="buttonStart" bindtouchend="buttonEnd" catchtap="evaluateEvt" style="top:{{buttonTop}}px;lef
阅读全文
摘要:封装在公用的js文件里 // resList.js const app = getApp() module.exports = Behavior({ behaviors: [], properties: {}, data: { list: [], //列表数据 recordCount: 0, //列
阅读全文
摘要:config.js里引入封装接口 /** * 小程序配置文件 */ // 此处主机域名是腾讯云解决方案分配的域名 // var HOST_TEST1 = "https://icpmotes/mobile"//测试环境: var HOST_TEST1 = "https://wxwx.com:443/a
阅读全文
摘要:/* 改变数组/对象里的某一个值 */ data:{ questionList: [{ id: 1, questionName: '1、课程内容丰富、详实', questionValue: 0 } ], obj: { text: 123 } }, qValueEvt(e){ //修改对象中的属性值
阅读全文

浙公网安备 33010602011771号