参数传递实际上就是属性绑定
<!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>组件</title>
<script src="./vue.js"></script>
</head>
<body>
<div id="app">
<briup-list data="hello"></briup-list> //hello
<briup-list :data="hello"></briup-list> //取父组件data中的hello属性的值:hello world
<briup-list :data="'hello world'"></briup-list> //hello world
<briup-list data="2"></briup-list> // 字符串类型的 2
<briup-list :data="2"></briup-list