java:
java.net.URLEncoder.encode(s, "UTF-8");
java.net.URLDecoder.decode(chezhanInEn,"UTF-8");
str.replaceAll("%", "-")
javaScript:
encodeURI(cz);
decodeURI(cz);
str.replace(/-/g,"%");
时间: 2024-11-08 21:45:46
java:
java.net.URLEncoder.encode(s, "UTF-8");
java.net.URLDecoder.decode(chezhanInEn,"UTF-8");
str.replaceAll("%", "-")
javaScript:
encodeURI(cz);
decodeURI(cz);
str.replace(/-/g,"%");