Html知识总结

来源:互联网 发布:淘宝 多隆是谁 编辑:程序博客网 时间:2024/05/22 02:03

1.

 <img src="<%=basePath+pagelist2.get(6).toString()%>"/>

<img src=<%=basePath+pagelist2.get(6).toString()%>/>
二者的区别:上面如果src中有空格、则会自动转换成%20。下面就会截取空格之前的地址
如:

http://localhost:8080/xc//upload_file/news/14797208068080空格(25).JPG

1=http://localhost:8080/xc//upload_file/news/14797208068080%20(25).JPG

2=http://localhost:8080/xc//upload_file/news/14797208068080”(25.JPG

0 0
原创粉丝点击