上代码:varfuncs=newArray();functionprintHello(){console.log("Hello!");}functionprintFine(){console.log("Fine!");}funcs.push(printHello);funcs.push(printFine);console.log(funcs.length);for(funcinfuncs){//UncaughtTypeError:Property'func'ofobject[objectObject]isnotafunctionfunc();}浏览器载入的时候,报的错已经标记在注释里。请问放在数组中的函数应该怎么调用?
GCT1015
哆啦的时光机
相关分类