1、JavaScript頁面跳轉
1.我們可以利用http的重定向來跳轉 window.location.replace("網址"); 2.使用href來跳轉 window.location.href = "網址";
2、使用功能jQuery頁面跳轉
$(location).attr('href', ‘網址’); $(window).attr('location',‘網址’); $(location).prop('href',‘網址’)
1、JavaScript頁面跳轉
1.我們可以利用http的重定向來跳轉 window.location.replace("網址"); 2.使用href來跳轉 window.location.href = "網址";
2、使用功能jQuery頁面跳轉
$(location).attr('href', ‘網址’); $(window).attr('location',‘網址’); $(location).prop('href',‘網址’)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。