Unhandled Rejection (SyntaxError): Unexpected token < in JSON at position 0
fetch("../../../public/mock/order.json").then(res => { 错误
fetch("/mock/order.json").then(res => { 正确
路径必须按照教程中的写法!
fetch("../../../public/mock/order.json").then(res => { 错误
fetch("/mock/order.json").then(res => { 正确
路径必须按照教程中的写法!
2018-12-27
举报