美文网首页
SyntaxError: missing } after pro

SyntaxError: missing } after pro

作者: 四季变幻 | 来源:发表于2017-04-25 21:32 被阅读14次

php 前端输出json_encode报错

见官方文档http://php.net/manual/zh/function.json-encode.php

20170517更:

这种情况主要是json字符串内含双引号,可先将字符串通过urlencode转换一下,js用encodeURIComponent

相关文章

网友评论

      本文标题:SyntaxError: missing } after pro

      本文链接:https://www.haomeiwen.com/subject/gldbzttx.html