虚拟主机window.location.href is not a function错误解决js报错:window.location.href is not a function是由于写法问题以及浏览器不兼容导致的,具体解决方法如下: 错误js写法: window.location.href ("http://www.02405.com/"); 正确js写法: window.location.href = "http://www.02405.com...赞 (0)2020-12-02 19:25:02阅读(3440)标签:function / href / location / window / 解决 / 错误