本文 31627 pv

3

window.location.href报错window.location is not a function

© kekehu / 技术资源 / 2009.02.27 / 16:08 / 31627PV

以前 window.location.href这个没有注意到在FF上面有问题。

在FF上面提示是:window.location is not a function ,在IE上面正常工作。


因此,这里是一个解决方法是: 使用window.location不是window.location.href


正确的语法是:window.location(url) or window.location = (url)

本文有 3 篇评论

  1. @ 啊啊啊啊 Email 说 :
    2017.09.01 18:50
    avatar

    zandogenvyfearfeargrinkillkilllovelovepigpigpukepukequestionquestionshockshockshuaishyshysleepysleepysmilesmilesmokesmokestupidzanuplookunhappythumbdownsweat

  2. @ 12 Email 说 :
    2015.12.02 18:55
    avatar

    zan

  3. @ yu 说 :
    2009.04.27 10:41
    avatar

    dog

1/1 第一页 1 最后页

发表你的见解

打开HTML 打开UBB 打开表情 隐藏 记住我
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemot