这里写自定义目录标题 脚本在新版浏览器中正常执行,却可能在 Internet Explorer 中报一下错误。 1: const must be initialized. 有可能是 for (const i in array) 造成的,把 const 改为 let 或 var。 2: missing ‘)’ 或者 ‘)’ is required. 有可能是 function func(arg1 = null) {} 之类的函数参数定义造成,需要把 ’ = null’ 删除。