控制台输出:

1.谷歌:Uncaught SyntaxError: Unexpected token <

2.火狐:SyntaxError: expected expression, got '<'

3.Edge:SCRIPT1002: Syntax error

 

错误定位:三个浏览器均指向一个html的顶部,无论有无代码。

错误代码:无,即使一个空html都会报错

 

 

错误原因:

在index中引用了html(手残把js打成html)。

 

解决办法:改回去就好了。

控制台输出:

1.谷歌:Uncaught SyntaxError: Unexpected token <

2.火狐:SyntaxError: expected expression, got '<'

3.Edge:SCRIPT1002: Syntax error

 

错误定位:三个浏览器均指向一个html的顶部,无论有无代码。

错误代码:无,即使一个空html都会报错

 

 

错误原因:

在index中引用了html(手残把js打成html)。

 

解决办法:改回去就好了。

相关文章:

  • 2021-10-31
  • 2022-12-23
  • 2021-03-30
  • 2021-10-18
  • 2021-09-02
  • 2021-04-19
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-11-12
  • 2021-07-28
  • 2021-06-27
  • 2022-12-23
相关资源
相似解决方案