String is not a function on window location href
This question already has an answer here:
Try-
window.location.href = link;
or
window.location.assign(link);
JSFiddle
Check out the syntax of window.location here.
Try using:
window.location.href = link;
MDN source
window.location.href = link;
用这个。
链接地址: http://www.djcxy.com/p/1944.html上一篇: 使用jQuery重定向
下一篇: 字符串不是窗口位置href上的函数