const plugin = requirePlugin('job-plugin') Page({ data: { items: [], currentItem: 0, tabSelectID:{ num1: 0, num2: 0, num0: 0 } }, onLoad() { plugin.sayHello() const world = plugin.answer }, sub_fun: function (e) { console.log(e.detail) wx.navigateTo({ url: '../detail/index?id='+e.detail, }) }, special_btn: function (e) { console.log(e.detail) wx.navigateTo({ url: '../special/index?id='+e.detail, }) }, sendMsg(e){ console.log(e.detail); }, addItem() { this.data.items.push(this.data.currentItem++) this.setData({ items: this.data.items, currentItem: this.data.currentItem }) }, })