SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data情况在easyui 的datagrid
json
适用于现代 C++ 的 JSON。
项目地址:https://gitcode.com/gh_mirrors/js/json
·
在使用easyui插件的datagrid功能的时候,报了个这个错误,SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data。
后来发现,是像后台传递参数出了问题。我这里的原因是,使用了属性queryParams: form2Json('searchform'),id为"searchform"的form表单是空的,没有任何值。我写入了一个测试数据<input type="hidden" name="test" value="aaa" />,问题就解决了。
适用于现代 C++ 的 JSON。
最近提交(Master分支:2 个月前 )
960b763e
4 个月前
8c391e04
7 个月前
更多推荐

所有评论(0)