晴兰 发表于 2015-10-26 11:46
Object.prototype.alias = function(a, b){
this.prototype[a] = this.prototype
}
var alias_method_name = old_method_name; old_method_name = function() { alias_method_name.call(this); console.log('hello world'); }
var alias_method_name = old_method_name; old_method_name = function(paramA,paramB,paramDIY) { alias_method_name.call(this,paraA,paramB); console.log('hello world'); console.log(paramDIY); }
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |