JS 对url进行编码

it2025-03-29  15

推荐使用: encodeURIComponent()

特殊字符必须编码,例如 #,否则传递参数不完整

 var urrl = '/SearchDialog/PrefabtypeSearch?functionName=PrefabtypeSearch' + '&prefabNo=' + encodeURIComponent(_prefabNo);

转载于:https://www.cnblogs.com/lhlong/p/6222593.html

相关资源:JS实现URL编码转换中文
最新回复(0)