23
未捕获的SyntaxError:带有JSON.parse的意外令牌
是什么导致第三行出现此错误? var products = [{ "name": "Pizza", "price": "10", "quantity": "7" }, { "name": "Cerveja", "price": "12", "quantity": "5" }, { "name": "Hamburguer", "price": "10", "quantity": "2" }, { "name": "Fraldas", "price": "6", "quantity": "2" }]; console.log(products); var b = JSON.parse(products); //unexpected token o 运行代码段隐藏结果展开摘要 打开控制台以查看错误
190
javascript
jquery
json