无效的表达式:图像中的正则表达式标志p无效

时间:2019-06-22 16:17:18

标签: regex laravel vue.js

我收到此错误:

Error compiling template: invalid expression: invalid regular expression flag p in /uploads/product/1560228180.png Raw expression: :src="/uploads/product/1560228180.png"



<!-- MENAMPILKAN IMAGE DARI PRODUCT --> 62 | <div class="col-md-3" v-if="product.photo"> 63 | <img :src="/uploads/product/1560228180.png" :alt="product.title" width="150px" height="150px"> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 64 | </div> 65 | </div>

我的js无法编译模板,并给我此错误消息:

 Error compiling template: invalid expression: invalid regular expression flag p in /uploads/product/1560228180.png Raw expression: :src="/uploads/product/1560228180.png"



<!-- MENAMPILKAN IMAGE DARI PRODUCT --> 62 | <div class="col-md-3" v-if="product.photo"> 63 | <img :src="/uploads/product/1560228180.png" :alt="product.title" width="150px" height="150px"> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 64 | </div> 65 | </div>

0 个答案:

没有答案