小程序函数劫持的基本原理

这里只以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; } })

 

posted @ 2017-11-28 20:50  洛河  阅读(1177)  评论(0)    收藏  举报