![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JS
xxx0627
这个作者很懒,什么都没留下…
展开
-
JS点击事件
第一种:第二种:第三种:备注:btnObj.click()是真正地用程序去点击按钮,触发了按钮的onclick()事件btnObj.onclick()只是简单地调用了btnObj的onclick所指向的方法,只是调用方法而已,并未触发事件...翻译 2019-04-07 16:49:10 · 15852 阅读 · 1 评论 -
JS页面跳转到指定页面&返回上一页
跳转第一种(跳转到b.html):window.location.href=“b.html”;第二种(返回上一页):window.history.back(-1);第三种(跳转到b.html):window.navigate(“b.html”);第四种:self.location=’b.html’;第五种:top.location=’b.html’;...翻译 2019-04-07 17:11:07 · 16602 阅读 · 0 评论