Page中用了pageData后面怎么写其他函数?
var pageData = {}
for (var i = 1; i < 6; ++i) {
(function (index) {
pageData[`slider${index}change`] = function (e) {
console.log(`slider${index}发生change事件,携带值为`, e.detail.value)
}
})(i);
}
Page(pageData,
{bc:function(e){
console.log(e.detail)
}}
)
绑定bindtap的bc没用?