会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
城别
自己选择的路,从不后悔!
博客园
首页
新随笔
联系
订阅
管理
2019年7月11日
【JS】使用js完成页面跳转
摘要: 1.window.location.href // 将js直接写在html中 <button onclick="window.location.href='https://www.baidu.com'">点击跳转</button> //将js和html分开 <button class="click_
阅读全文
posted @ 2019-07-11 14:32 城别
阅读(10811)
评论(0)
推荐(1)
编辑
公告