javascript 转跳页面

非常常用,但是经常不记得.
其实也没有必要记嘛,写到网站上就行,又颓废了,上班的时候刷博客.

 

 

代码如下:

window.location.href="http : / /你想要转跳的网址"

 

这篇博文发表在 网页设计 | Web Design 目录下,标签为 ,
如需引用,请使用链接:https://note.mc256.dev/?p=168

This article published in 网页设计 | Web Design with tags , .
Cite this page using this link:https://note.mc256.dev/?p=168

您的邮箱地址不会被公开,评论使用Gravatar头像。
Your email address will not be published. This blog is using Gravatar.

正在提交评论... Submitting ...
正在为您准备评论控件 Loading Comment Plugin
Copyright © 2013-2023 mc256. All Rights Reserved.
Powered by WordPress on top of a dual-stack k3s Cluster using JuiceFS.
Wordpress Theme Designed By mc256.
Encrypted By Let's Encrypt.  Hosted On Linode + OVH + AWS.
DNS Provided By Hostker.
Status Page by CloudFlare Worker.