app.js:1 Uncaught SyntaxError: Cannot use import statement outside a module

前端 未结 0 1416
野性不改
野性不改 2021-02-09 14:59
import axios from \'axios\';
let addToCart = document.querySelectorAll(\'#add-to-cart\');

// post requesta with fetch data
function updateCart(food){
axios.post(\'/upda         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题