roc*_*hal 14
你可以使用一个优秀的json2.js库:https: //github.com/douglascrockford/JSON-js
看看JSON.stringify方法.
编辑:
似乎librabry现在转移到github repo:https://github.com/douglascrockford/JSON-js
使用Douglas Crockford的JSON对象的stringify方法:
这将在警告框中显示您的对象:
alert(JSON.stringify(myObject));
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
57804 次 |
| 最近记录: |