URI Escape for strings
This question already has an answer here:
如果你正在寻找UTF-8编码,你可以使用encodeURIComponent():
var encodedURI = encodeURIComponent(str);
上一篇: 以url作为参数的JSON调用
下一篇: 字符串的URI转义
This question already has an answer here:
如果你正在寻找UTF-8编码,你可以使用encodeURIComponent():
var encodedURI = encodeURIComponent(str);
上一篇: 以url作为参数的JSON调用
下一篇: 字符串的URI转义