如何使用jQuery解码URL?我的网址是
http%3A%2F%2Fdtzhqpwfdzscm.cloudfront.net%2F4ca06373624db.jpg
解决方法
尝试
decodeURIComponent功能:
var decodedUri = decodeURIComponent('http%3A%2F%2Fdtzhqpwfdzscm.cloudfront.net%2F4ca06373624db.jpg'); alert(decodedUri);