var detail = function (id_type,id) {
require(['views/detail/detail.js'], function(page) {
var detailPage = page;
showPage(detailPage.view,'detailPage'+id);
detailPage.init(id_type,id);
});
}
我这样做page会被函数影响到,我希望是page不被改变,仅改变函数的内部变量,所以请问该怎么做呢
慕运维8079593
相关分类