当前位置:首页 > js > 正文内容

js跳转到指定url

admin5个月前 (11-11)js215

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

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

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

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

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

分享给朋友:

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

有iframe界面的自动下一集

测试页面https://www.qiju.cc/vod/play/id/356/sid/2/nid/1.html下面是油猴代码,方法一采用延时器 // ==UserScript== // @name      &nb...

油猴第一课百度两下

// ==UserScript== // @name         百度两下 // @namespace    http://tamp...

foreach用法

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