最新回答 / 俊崽爱枫妞
不能写成=,这个对象object只能写成totalMoney: 0 你这个总金额不该是写在html里的吗? <div class="cart-tab-4"> <div class="item-price-total">{{item.productPrice*item.productQuantity | filters1("元")}}</div> </div>
2017-07-10
最赞回答 / rao184908863
因为$http是异步的,所以取不到外面的vm,参考js里this的四种指向问题,像点击事件内部的this,定时器内部this都是取不到外面的this值的
2017-07-06
最新回答 / 吴彦祖的帅气
selectAll: function(isCheck) {this.checkAll = isCheck; //直接给全选参数赋值this.students.forEach(function(item) {if (typeof item.checked == "undefined") {Vue.set(item, "checked", isCheck); //这里传入的应该是isCheck,而不是true} else {item.checked = isCheck;}});},
2017-07-01
最赞回答 / qq_爅_0
你语句里地方少写东西 所以出不来效果 是 @click="imitNum = 3 ?imitNum= AddressList.length:imitNum=3" 这样写才对
2017-06-28
最赞回答 / 精慕门8809473
菜鸟一枚,遇到这个问题的原因是,在Home页面需要通过v-for渲染的元素,把js的方法写到了Index页面,哪个页面渲染就应该把js写在相应页面。
2017-06-22