js編碼之encodeURIComponent使用介紹?
js用兩次編碼encodeURIComponent(encodeURIComponent(str));后臺一次解碼str=java.net.URLDecoder.decode(name,"UTF-8");或者js編碼不變,后臺解碼用s = new String(str.getBytes("ISO8859-1"), "UTF-8");
js編碼之encodeURIComponent使用介紹?
js用兩次編碼encodeURIComponent(encodeURIComponent(str));后臺一次解碼str=java.net.URLDecoder.decode(name,"UTF-8");或者js編碼不變,后臺解碼用s = new String(str.getBytes("ISO8859-1"), "UTF-8");