Vue与Bootstrap实现品牌管理
功能介绍
- 储存车辆Id,储存车辆名称
- 通过车辆名称关键字搜索车辆
- 删除车辆信息
- 更改车辆名称
代码部分
<!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>Document</title>
<script src="./vue.js"></script>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div id="app">
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">品牌管理</h3>
</div>
<div class="panel-body">
<form class="form-inline" role="form">
<div class="form-group">
<label class="" for="name">Id:</label>
<input type="text" class="form-control" id="name" placeholder="请输入Id" v-model="carId">
</div>
<div class="form-group">
<label class="" for="name">Name:</label>
<input type="text" class="form-control" id