<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>购物车</title>
</head>
<style>
table,
table tr th,
table tr td {
border: 1px solid;
border-collapse: collapse;
}
table tr th,
table tr td {
width: 120px;
height: 40px;
text-align: center;
}
</style>
<body>
<div id="app">
<table>
<tr>
<th colspan="6">商品列表</th>
</tr>
<tr>
<th>商品编号</th>
<th>商品图片</th>
<th>商品名称</th>
<th>商品单价</th>
<th>商品描述</th>
<th>功能</th>
</tr>
<tr v-for="(item,index) in goods" :key="index">
<td>{ {item.id}}