Home >Web Front-end >JS Tutorial >Solution to the problem of garbled characters when using action on the page to pass parameters to the background_jquery
Use jquery ajax on the page
//Retrieve name method
function jiansuoByName(k,name){
if (name == '') {
alert("Please enter the search content");
return;
}
$.post(basePath "/sysmgr/searchesAjax/searchesJsonPlugin!searchesNameByOMCByName.action", createQS(name),
function(data){
//alert(data.result 'n ' k); // John
setLine_memoryFunction_A(data.result,k);
}, "json");
}
String _name = request.getParameter("key");
String name = URLDecoder.decode(_name,"utf-8");