现有多个页面(test1.html、test2.html、index.html)需要包含某个页面(header.html),且这多个页面位于不同的目录,如下所示Item/
js/
main.js
images/
...
about/
test1.html
...
contact/
test2.html
...
index.html
header.html通过ajax来实现页面包含时,请求的url改如何填写? //main.js
...
xmlHttp.open("GET",url,true);
xmlHttp.send();
...而且被包含的页面header.html有图片资源,这个图片资源的链接又该如何写?
添加回答
举报
0/150
提交
取消