Uncaught TypeError: window.location.href is not a function 把window.location.href(url)改成window.location=(url)