SyntaxError: missing } after pro
2017-04-25 本文已影响14人
四季变幻
php 前端输出json_encode报错
见官方文档http://php.net/manual/zh/function.json-encode.php
20170517更:
这种情况主要是json字符串内含双引号,可先将字符串通过urlencode转换一下,js用encodeURIComponent
php 前端输出json_encode报错
见官方文档http://php.net/manual/zh/function.json-encode.php
20170517更:
这种情况主要是json字符串内含双引号,可先将字符串通过urlencode转换一下,js用encodeURIComponent