用
var url = "/test/ChangePwdAjax.do?newPass="+ enpreURIComponent(valuePassword);
这会将您编码
valuePassword为有效的URL组件,该组件可以作为URL中的查询字符串传递
另一方面,您应该用来
depreURIComponent从编码字符串中获取值
var value = depreURIComponent(valuePasswordPassed);
要了解更多有关此的信息,请点击此处

用
var url = "/test/ChangePwdAjax.do?newPass="+ enpreURIComponent(valuePassword);
这会将您编码
valuePassword为有效的URL组件,该组件可以作为URL中的查询字符串传递
另一方面,您应该用来
depreURIComponent从编码字符串中获取值
var value = depreURIComponent(valuePasswordPassed);
要了解更多有关此的信息,请点击此处