Query ajax()使用serialize()提交form數據 以及如何防止中文亂碼

作爲ajax的data參數 提交表單數據 最好對數據進行以下兩步操作: 1、表單序列化:serialize(); 2. 防止中文亂碼:var submitData=decodeURIComponent(data,true); 
相關文章
相關標籤/搜索