Vue官网实例
此篇博客为Vue官网中的一个实例,增加了一点点注解,方便日后回顾复习,个人认为此实例特别精简,涉及到Vue基础的大部分内容,很有参考价值。
主体代码直接引自动态组件实例
<!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="https://unpkg.com/vue@2"></script>
<style>
.tab-button {
padding: 6px 10px;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border: 1px solid #ccc;
cursor: pointer;