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
舉報
2019-04-17
fetch1問題根本解決不了
2019-02-22
fetch('/mock/orders.json')一直報錯
fetch('./mock/orders.json')問題解決
2018-12-27
聽課不認真,老師后來解釋了!