日期:2014-05-17 浏览次数:20769 次
http://localhost:8080/tomcat/0%20tomcat%20-%20副本.gif
HTTP Status 404 - /tomcat/dtomcat''..,,%EF%BC%9B%EF%BC%9B%E3%80%81%EF%BC%8C%20-%20%E5%89%AF%E6%9C%AC%20-%20%E5%89%AF%E6%9C%AC.gif
<img src="" id="imgId">
<div onclick="clickToImg('$!user.imgPath')">$!user.imgPath</div>
这种方式的怎么解码?
imgPath = encodeURIComponent(imgPath)
$("#imgId).attr("src",decodeURIComponent(imgPath));