一个购物车应用
结果展示
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/dcdfeb7ef6419030e9e1b5297fd86357.png)
html源码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Vue 实例</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="app" v-cloak>
<template v-if="list.length">
<table>
<thead>
<tr>
<th></th>
<th>商品名称</th>
<th>商品单价</th