【发布时间】:2017-09-28 20:33:36
【问题描述】:
这是我在在线 JavaScript Minifier 中从 public/assets/js 检查我的 application.js 时收到的错误:
Parse error: Unexpected token: punc (})
Line 22315, column 33
22314: url: "/products/per_amount",
22315: data: {id: quantity, product},
22316: dataType: "json",
看起来就像这样:
$.ajax({
url: "/products/per_amount",
data: {id: quantity, product},
dataType: "json",
type: "GET",
...
这与this 的错误相同,但我查看的所有地方都说它要么已修复,要么我尝试的解决方案不起作用。
【问题讨论】: