【功能实现】购物车
背景介绍
购物车是商城类应用里必不可少的功能,接下来,我们将使用 vue 实现一个购物车列表。
考试要求
解答:
index.html:
<!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>
&