1
我试图让该函数的功能与参数子功能的Javascript调用内部函数功能
function firstF(){
this.childF1 = function($argument){
// do something + $argument
}
this.childF2 = function($argument2){
// do something + $argument2
}
}
//Declare a new firstF
var firstFunction = new firstF();
firstFunction.childF1
我如何在这里宣布$参数里面?
'firstF.childF1(“arg”);' – deadlock
我强烈建议您阅读https://developer.mozilla.org/en-US/docs/JavaScript/Introduction_to_Object-Oriented_JavaScript – plalx