1、发送编码:URL用encodeURI,参数用encodeURIComponent编码
编码:encodeURI("/SystemManage/Area/ItemForm?keyValue=" + keyValue + "&keyText=" + encodeURIComponent(keyText))
2、接收解码:参数用decodeURIComponent解码
解码:decodeURIComponent($.request("keyText"))
1、发送编码:URL用encodeURI,参数用encodeURIComponent编码
编码:encodeURI("/SystemManage/Area/ItemForm?keyValue=" + keyValue + "&keyText=" + encodeURIComponent(keyText))
2、接收解码:参数用decodeURIComponent解码
解码:decodeURIComponent($.request("keyText"))
转载于:https://www.cnblogs.com/Alaric/p/8628386.html