js中莫名奇妙的报The left-hand side of an assignment must be a variable错误

来源:互联网 发布:三菱plc编程实例 编辑:程序博客网 时间:2024/05/20 16:40

错误详情

这里写图片描述

检查过后发现,js代码没有错误,但是就是报The left-hand side of an assignment must be a variable,找了半天也没找到原因,经过排查,发现是使用了<% – – %>这个注释导致的问题,去掉以后就不会报错了。

阅读全文
0 0
原创粉丝点击