我已将我的jquery代码放在pug模板中,但未运行。我正在尝试运行jQuery函数,但是即使我也包含jQuery文件,我也遇到以下错误:-
@foreach ($order as $product)
@if (!empty($product))
<tr>
<td>{{$product->product->product_name}}</td> **//Here is the referencing**
<td>{{$product->quantity}}</td>
<td>{{$product->totalPrice}}</td>
<td>{{$product->totalPrice * $product->quantity }}</td>
<td>{{$product->created_at->diffForHumans()}}</td>
<td>{{$product->orderStatus}}</td>
</tr>
@endif
@endforeach
这是我的哈巴狗模板:-
40| P
41| script(type="text/javascript")
> 42| - $("#image-drop-area").dropzone({ url: "/file/post" })
$ is not a function