调试JS时出现以上的错误,仔细看原来是 变量名 和 方法名 同名了。。。。。。。。。。如var a;a = a();function a(){ return 1;}Uncaught TypeError: undefined is not a function