- 博客(1)
- 收藏
- 关注
原创 js中跳转页面的方法
location.href的基本用法 问题 js中的location.href的作用是什么?有几种用法?区别是什么? 作用 主要用于跳转页面 用法与区别 1.self.location.href=“url”; //1.仅在本页面打开url 2.window.location.href=“url”; //2.当前页面打开URL页面 3.this.location.href=“url”; //3.用法和self.location.href一直 4.location.href=“url”...
2020-06-05 02:13:57 645
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人