控制台报错: Failed to launch ‘xxx’ because the scheme does not have a registered handler.
这种错误是因为请求没有协议,应该把协议头加上
错误的例子
window.location.href="localhost:8080/goShowJSP"
正确的例子
window.location.href="http://localhost:8080/goShowJSP"
window.location.href="localhost:8080/goShowJSP"
window.location.href="http://localhost:8080/goShowJSP"