window.document.location和window.location的区别?
来源:百度知道 编辑:UC知道 时间:2024/06/17 15:40:57
怎么效果看上去没有区别,实质上有区别吗?
楼主看看这篇文章
是否对你有帮助
http://hi.baidu.com/chenaran/blog/item/efd344ac4ae1d2004b36d625.html
window.document.location
浏览器2级对象。
window.location
浏览器1级对象
他们分别都有location。 本质意义上没有什么区别。区别在于处理的对象不同。
没区别 ,直接跳转到指定URL