这里只以page为例:
function Page(){ let onLoad = arguments[0].onLoad; arguments[0].onLoad = function(){ //doSomeThing(arguments); onLoad.apply(this,arguments); } } Page({ onLoad:function(options){ this.boolean = true; } })
这里只以page为例:
function Page(){ let onLoad = arguments[0].onLoad; arguments[0].onLoad = function(){ //doSomeThing(arguments); onLoad.apply(this,arguments); } } Page({ onLoad:function(options){ this.boolean = true; } })
转载于:https://www.cnblogs.com/chyblog/p/7911989.html