WSCのprototype
WSCでprototypeを使う。
Array.prototype.test = "component"; function f(){ // 登録するメソッド return []; }
それを呼び出す。
var wsc = WSH.CreateObject("Test.WSC"); Array.prototype.test = "wsh"; var a1 = wsc.f(); var a2 = []; WSH.Echo(a1.test, a2.test); // component wsh
どちらのprototypeも、お互い干渉しない。だから何だ、という感じ。