4
我試圖使用window.location的重定向到一個相對URLwindow.location的相對URL
這個變量
var redirect = $(this).attr('title');
有這個價值
../../000_Movies/_assets/playlist.html
這不會重定向
window.location = redirect;
我試圖使用window.location的重定向到一個相對URLwindow.location的相對URL
這個變量
var redirect = $(this).attr('title');
有這個價值
../../000_Movies/_assets/playlist.html
這不會重定向
window.location = redirect;
如果你想重定向到相關的網頁,你應該使用:
window.location.href = "../../000_Movies/_assets/playlist.html";
你可以使用:
window.location.href = $(this).attr('title');