Uncaught SyntaxError: Unexpected identifier错误
在项目中遇到的问题
做HTML的分页
| | |
运行时报错Uncaught SyntaxError: Unexpected identifier
查询后发现是json在此处要JSON.stringify(data).replace(/"/g,"’");转换类型,不然传递对象形式里面的对象会变成onclick([object Object])
json.stringify().replace(...
原创
2019-06-22 19:43:27 ·
789 阅读 ·
0 评论