tp中js在行末使用注释报错Uncaught SyntaxError: Unexpected token }

if (new_directors==1) {// 注释


解决办法:注释换成单行
if (new_directors==1) {
//注释

原因:tp似乎是模板把{//当作注释了

相关文章:

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