猿问

自定义的过滤器报错,程序无法运行,请大神看下

Vue.filter("money", function(value) {
	return "¥ " + value.tofixed(2);
});
<tr class="text-center" v-for="(item,index) in filterPorduct">
					<td v-text="index+1"></td>
					<td v-text="item.porductId"></td>
					<td v-text="item.porductName"></td>
					<td v-text="item.porductPrice | money"></td>
					<td>
						<a href="javascript:;" @click="quentity(item,-1)">减</a>
						<span style="display: inline-block;width: 50px;" v-text="item.porductQuentity"></span>
						<a href="javascript:;" @click="quentity(item,1)">加</a>
					</td>
					<td v-text="item.porductPrice*item.porductQuentity"></td>
					<td><img v-bind:src="item.porductImage"></td>
					<td>
						<a href="javascript:;" @click="deleteItem(item)">删除</a>
					</td>
				</tr>


_bug终结者_
浏览 1260回答 1
1回答

陌上人如玉_010

报的错误是什么
随时随地看视频慕课网APP

相关分类

Vue.js
我要回答