一样。
location Object
--------------------------------------------------------------------------------
Contains information about the current URL. ResThe href property contains the entire URL, while the other properties contain portions of the URL. The default property for the location object is location.href. For example, setting location='http://microsoft.com' is equivalent to setting location.href='http://microsoft.com'. The browser immediately navigates to the specified URL when any of the properties listed below are set.This object is available in script as of Microsoft® Internet Explorer 3.0.Applies To
document, window
location Object
--------------------------------------------------------------------------------
Contains information about the current URL. ResThe href property contains the entire URL, while the other properties contain portions of the URL. The default property for the location object is location.href. For example, setting location='http://microsoft.com' is equivalent to setting location.href='http://microsoft.com'. The browser immediately navigates to the specified URL when any of the properties listed below are set.This object is available in script as of Microsoft® Internet Explorer 3.0.Applies To
document, window
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货