Vue框架入门(二)---图书管理

本文是Vue框架入门的第二部分,主要介绍了一个图书管理应用的实现。内容涵盖Vue的基础特性,如具名插槽、组件注册、侦听器、生命周期、自定义属性、父子组件传值、组件插槽和计算属性。示例代码和完整应用可以在Gitee仓库(https://gitee.com/vgtime123/ManageBook)及Gitee Pages(http://vgtime123.gitee.io/managebook)中查看。
摘要由CSDN通过智能技术生成

涉及知识:

  1. HTML、CSS、JavaScript
  2. Vue(具名插槽、组件注册、侦听器、生命周期、自定义属性、父子组件传值、组件插槽、计算属性)

Gitee仓库 :https://gitee.com/vgtime123/ManageBook

Gitee Pages:http://vgtime123.gitee.io/managebook

完整代码:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			body {
    
				font-size: 30px;
				background-color: wheat;
			}
			#app {
    
				margin: 0 auto;
				text-align: center;
				background-color: wheat;
			}
			label {
    
				vertical-align:bottom;
			}
			table {
    
				align: center;
				margin: 10px auto;
				
			}
			input {
    
				width: 300px;
				height: 30px;
				font-size: 20px;
				background-color: white;
			}
			td {
    
				height: 100px;
				width: 200px;
			}
			td input {
    
				width: 80%;
				height: 30px;
			}
			a {
    
				text-decoration: none;
			}
			button {
    
				height: 35px;
				width: 60px;
				font-size: 20px;
				vertical-align:bottom;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<h2>图书管理</h2>
			<span >
				<label 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值