feat(WechatSmallProject): 新增 微信小程序 课程(包含实验1-4)
This commit is contained in:
12
WechatSmallProject/test3/pages/index/index.js
Normal file
12
WechatSmallProject/test3/pages/index/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
Page({
|
||||
data: {
|
||||
currentTab: 0
|
||||
},
|
||||
|
||||
switchTab(e) {
|
||||
const tab = e.currentTarget.dataset.tab;
|
||||
this.setData({
|
||||
currentTab: parseInt(tab)
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user