2011年10月20日
摘要: error: function( msg ) {//声明错误 throw msg; }, parseJSON: function( data ) {//把字符串转换成json格式 if ( typeof data !== "string" || !data ) {//首先判断是否存在,是否为字符串 return null; } data = jQuery.trim( data );//去掉前后空白 if ( window.JSON && window.JSON.parse ) {//高级版本有原生JSON转换函数window.JSON return wi.. 阅读全文
posted @ 2011-10-20 15:26 不知道用什么名字 阅读(617) 评论(3) 推荐(0) 编辑