<code>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<link type="text/css" rel="stylesheet" href="http://cdn.bootcss.com/bootswatch/3.3.7/cerulean/bootstrap.css"/>
</head>
<body>
<div }
}
},
computed: {
total: function () {
var total = 0;
this.books.forEach(function (item, index, input) {
total += item.price * item.count;
});
return total;
}
}
})
</script>
</body>
</html>
</code>

相关文章:

  • 2021-06-18
  • 2022-12-23
  • 2021-12-04
  • 2021-05-21
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-11-30
相关资源
相似解决方案