2013年5月30日

JSON

摘要: function arrayToJson(o) { var r = []; if (typeof o == "string") return "\"" + o.replace(/([\'\"\\])/g, "\\$1").replace(/(\n)/g, "\\n").replace(/(\r)/g, "\\r").replace(/(\t)/g, "\\t") + "\""; if (typeof o == &quo 阅读全文

posted @ 2013-05-30 16:49 Tadpole 阅读(138) 评论(0) 推荐(0) 编辑

导航