PageJs
使用示例
PageJs (node,store) {
// Process pagejs
}
编译结果示例
Page({
open: function(){
wx.showActionSheet({
itemList: ['A', 'B', 'C'],
success: function(res) {
if (!res.cancel) {
console.log(res.tapIndex)
}
}
});
}
})
const _Page = require("../../../../__antmove/component/componentClass.js")("Page");
const _my = require("../../../../__antmove/api/index.js")(my);
_Page({
open: function () {
_my.showActionSheet({
itemList: ["A", "B", "C"],
success: function (res) {
if (!res.cancel) {
console.log(res.tapIndex);
}
}
});
}
})