Vue教程(十二)购物车案例
代码实现
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="UTF-8">
<title>购物车案例</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<h3>====欢迎光临《我行我素商城》购物车案例===</h3>
<div id="app">
<div v-if="books.length > 0">
<table border="1" width="40%">
<thead>
<tr>
<th>序号</th>
<th>编号