jQuery位置href [英] jQuery location href
本文介绍了jQuery位置href的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
如何重定向到另一个网页?
我记得jQuery中有一个重定向函数。
I remember there's a redirect function in jQuery.
就像:
$(location).href('http://address.com')
但究竟是什么呢?我无法记住,也无法使用谷歌搜索找到它。
But what was it exactly? I couldn't remember and can't find it using Google Search.
推荐答案
不需要jQuery。
window.location.href = 'http://example.com';
这篇关于jQuery位置href的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文