(function($Object, $Function, privates, cls, superclass) {
'use strict';
function Port() {
var privateObj = $Object.create(cls.prototype);//privateObj 继承cls
$Function.apply(cls, privateObj, arguments);//函数用cls执行 arguments里面有什么
privateObj.wrapper = this;
privates(this).impl = privateObj;//privates看来是个函数返回一个对象
};
if (superclass) {//传入5个参数返回对象传4个参数不反回?
Port.prototype = Object.create(superclass.prototype);
}
return Port;
})
我记得不是很清楚,说错不要介意。
prototype 好像不能这么用
prototype 申明的东西,是保存在--proto--属性下的
http://stackoverflow.com/questions/20735586/how-to-debug-external-eval-scripts
通过js加载的
谁如果能解释代码就好了