jquery对象转json jquery.json.js使用

jquery对象转json jquery.json.js使用

回复
  • 邓高明用户
    [[{"txt": "jquery\u5bf9\u8c61\u8f6cjson \u00a0jquery.json.js\u4f7f\u7528"}], [{"txt": ["\u65b9\u6cd5/\u6b65\u9aa4"]}, {"txt": "\u5b9e\u4f8b\tjquery\u5bf9\u8c61\u8f6cjson \u00a0jquery.json.js\u4f7f\u7528\t\t\t\t \t\t$(function(){\t\t\tvar obj=new Object();\t\t\tobj.name=\"\u5f20\u4e09\";\t\t\tobj.age=\"12\";\t\t\tobj.job=\"php\"; \t\t\tvar strjson = $.toJSON(obj);\t\t\t$(\".strjson\").text(strjson);\t\t\t//alert(strjson);\t\t});\t\t\u5bf9\u8c61\uff1avar obj ={name:\"andy\",age:20,job:\"javascript\"};\t"}, {"img": ["https://exp-picture.cdn.bcebos.com/ac45306817e951e1042265e55e3da824d9e9cf6c.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "$(function(){\t\t\tvar obj=new Object();\t\t\tobj.name=\"\u5f20\u4e09\";\t\t\tobj.age=\"12\";\t\t\tobj.job=\"php\";//\u8f6c\u6362\u6210json\u5b57\u7b26\u4e32 \t\t\tvar strjson = $.toJSON(obj);\t\t\t$(\".strjson\").text(strjson);\t\t\t//alert(strjson);\t\t});"}]]
    2024-04-29
    1楼
    回复

参与评论

游客评论不支持回复他人评论内容,如需回复他人评论内容请