简单小例子,BOOTSTRAP+VUE实现购物车功能。

本文通过一个简单的示例,展示了如何结合BOOTSTRAP和VUE技术来实现购物车功能。作者初涉VUE,分享了自己的学习心得,并邀请读者一起探讨。
摘要由CSDN通过智能技术生成

看了vue的helloworld,试手做了个小例子。欢迎大家讨论!

<!DOCTYPE html>
<html>
	<head>
		<meta charset="uft-8">
		<title>shopCar</title>
		<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" 
		integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
		<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
		<style>
			*{margin:0;padding: 0;border:0;}
			body{background: #eee;}
			table{background: #fff;text-align: center;}
			table img{width:40px;height:40px;}
			table i{font-style: normal;color:red;padding:0 5px;}
			table td *{vertical-align: middle;}
			table th{text-align: center;}
			.glyphicon{cursor: pointer;}
			.red{color:red;}
			.fx{text-decoration: underline;cursor: pointer;}
		</style>
	</head>
	<body>
		<div class="container" id="shopCar">
			<h1>购物清单</h1>
			<table class="table">
				<tr>
					<!-- .glyphicon .glyphicon-ok-circle -->
					<th>
						<label>
							全选
							<span class="glyphicon glyphicon-unchecked" @click=&
  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值