Recently, jquery encountered Chinese garbled characters. In fact, its Chinese garbled characters are because contenttype does not specify encoding,
You only need to search for contenttype in jquery. js.
Then add; charset = UTF-8 after application/X-WWW-form-urlencoded
Eventually changed to contenttype: "application/X-WWW-form-urlencoded; charset = UTF-8"
If you are using formvalidator, You need to modify a few places. I used formvalidator 3.3 to find two problems. Modify the formvalidator. JS File
1. garbled Chinese characters. First, modify the contenttype of the jquery library according to the above, and then search for ajaxvalid in formvalidator. js.
Delete encodeuricomponent () IN VaR parm = "clientid =" + ID + "&" + ID + "=" + encodeuricomponent (srcjo. Val ()
Change to VaR parm = "clientid =" + ID + "&" + ID + "=" + srcjo. Val.
2. Data always uses initialized data
Defines the parameter var ls_data = Setting. Data;
Find this code in (the next line of the code above) ls_url = ls_url + (ls_url.indexof ("? ")> 0? ("&" + Parm ):("? "+ Parm ));
Change to ls_data = ls_data + (ls_url.indexof ("? ")> 0? ("&" + Parm ):("? "+ Parm ));
Modify data: Setting. data to data: ls_data.