如何在我的jquery代码中上升一个目录级别?以下是我的代码。它引用了我的c盘上名为"上传"的文件夹,除了我没有看到"上传"在我的HTML中的任何地方...它怎么知道看到那里?如何将目录上移到主C级,以便我可以导航到另一个文件夹?
<div><div style="height:0px;overflow:hidden"></div>
<div id='426489085654210420-slideshow'></div>
<script type='text/javascript'>
(function(jQuery) {
function init() {
wSlideshow.render({
elementID:"426489085654210420",
nav:"none",
navLocation:"left",
captionLocation:"bottom",
transition:"fade",
autoplay:"1",
speed:"4",
aspectRatio:"auto",
showControls:"true",
randomStart:"false",
images:[{
"url":"project1.jpg","width":"400","height":"168"
},{
"url":"project2.jpg","width":"400","height":"226"
},{
"url":"project3.jpg","width":"400","height":"265"
}]
})
}
jQuery ? jQuery(init) : document.observe('dom:loaded', init)
})
(window._W && _W.jQuery)
</script>
答案 0 :(得分:0)
您可以在网址前加../
images:[{
"url":"../project1.jpg","width":"400","height":"168"
},{
"url":"../project2.jpg","width":"400","height":"226"
},{
"url":"../project3.jpg","width":"400","height":"265"
}]