摘要: window.serializeObj = function(form){ var o ={ }; $.each{form.serializeArray(),function(index){ if(o[this['name']]){ o[this['name']] = o[this['name']]... 阅读全文
posted @ 2015-02-07 00:17 mgxfm 阅读(597) 评论(0) 推荐(0)
摘要: function getQueryString(name){ var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$))","i"); var r = window.location.search(1).match(reg); if(r!=null) retu... 阅读全文
posted @ 2015-02-06 20:35 mgxfm 阅读(466) 评论(0) 推荐(0)