标签:class obj nbsp ejs UNC turn val style bsp
$.fn.serializeJson=function(){ var serializeObj={}; var array=this.serializeArray(); var str=this.serialize(); $(array).each(function(){ if(serializeObj[this.name]){ if($.isArray(serializeObj[this.name])){ serializeObj[this.name].push(this.value); }else{ serializeObj[this.name]=[serializeObj[this.name],this.value]; } }else{ serializeObj[this.name]=this.value; } }); return serializeObj; };
标签:class obj nbsp ejs UNC turn val style bsp
原文地址:https://www.cnblogs.com/tangqi9602/p/9395341.html