javascript:重定向到一个页面? [英] javascript: redirect to a page?

查看:86
本文介绍了javascript:重定向到一个页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用jquery [javascript]转到另一个页面?

how do i use jquery [javascript] to goto another page?

或更改浏览器urlfield中的url并点击回车?

or change the url in the browser urlfield and hit enter?

推荐答案

与jQuery无关,就是这样:

nothing to do with jQuery, just this:

window.location.href = 'whatever.html';

这篇关于javascript:重定向到一个页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆