涉及知识:
- HTML、CSS、JavaScript
- 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