js请求路径控制台报错 Failed to launch ‘xxx‘ because the scheme does not have a registered handler.

控制台报错: 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"

猜你喜欢

转载自blog.csdn.net/weixin_46713508/article/details/117432608