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"

你可能感兴趣的:(前端(Web),报错,js,web,jsp,html,jquery)