遇到这种错误,可能是因为test函数有语法错误 其中第一个document.write中有语法错误,就会报上述错误 转载于:https://www.cnblogs.com/SpringSmallGrass/archive/2013/04/12/3017143.html