很奇怪的路径。
图片是这种格式。
jsp中这么写:
${pageContext.request.contextPath }${book.resource.url }
js中:
向前台解析这么写:
<img src='/bookproject/"+item.resource+"'/>
手动添加路径……
向后台解析时这么写:
url : 'system/category'
不用写路径……
很奇怪的路径。
图片是这种格式。
${pageContext.request.contextPath }${book.resource.url }
向前台解析这么写:
<img src='/bookproject/"+item.resource+"'/>
手动添加路径……
向后台解析时这么写:
url : 'system/category'
不用写路径……