0
点赞
收藏
分享

微信扫一扫

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

架构大数据双料架构师 2022-02-20 阅读 291
前端html

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

相关推荐

0 条评论