1、页面跳转,注意是普通跳转navigateTo还是底部导航跳转 switchTab
starQuestion(){
const url = ‘…/subject/main’
// switchTab navigateTo
wx.switchTab({ url })
},
2、变量 图片 文字 引入组件
<img :src="item.ad_url" alt="">
<toast :message="msg" :visible.sync="visible" position="center">{
{
tips}}</toast>
3.事件
如 bindchange=“eventName” 事件,需要写成 @change=“eventName”
bindgetuserinfo 要写成 @getuserinfo,bindcontact 要写成 @contact,bindgetphonenumber 要写成 @getphonenumber,binderrror 要写成 @errror
4.循环语句
v-for
v-for里边必须加:key(双重循环如下)