当前位置:首页 > js

js跳转到指定url

admin1年前 (2024-11-11)js567

在 JavaScript 中,可以使用以下方法将页面跳转到指定的 URL:

window.location.href = 'http://example.com';  

扫描二维码推送至手机访问。

版权声明:本文由匡民博客发布,如需转载请注明出处。

本文链接:https://kuangmin.top/post/9.html

分享给朋友:

“js跳转到指定url” 的相关文章

foreach用法

// 获取页面上所有的 tbody 元素 let tbody = document.querySelectorAll('tbody') // 遍历每个 tbody 元素 tbody.f…