摘要: function obj2str(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... 阅读全文
posted @ 2015-10-05 21:04 joshua317 阅读(1035) 评论(0) 推荐(0)