在VS沒有問題到IIS後有問題:
window.location = "/Tentative/TentativeTime" // localhost:8080/Tentative/TentativeTime , BUT OK IN VIUSAL STUDIO
不同方法測試一下URL怎樣了:
top.location = "/HomePage/Tentative/TentativeTime"; //OK
top.location = "/Tentative/TentativeTime"; //localhost:8080/Tentative/TentativeTime
parent.location = "/Tentative/TentativeTime"; //localhost:8080/Tentative/TentativeTime
top.location = "./Tentative/TentativeTime"; //localhost:8080/HomePage/Home/Tentative/TentativeTime
這樣就也沒有問題:
window.location.href = '@Url.Action("TentativeTime", "Tentative")';
沒有留言:
發佈留言