摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="vue.min.js" type="text/javascript" charset="utf-8"></script> </head> 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="vue.min.js"></script> </head> <body> <div id="app"> <h2>绑定监听</h2> <!- 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="vue.min.js"></script> </head> <body> <div id="app"> <input type="text 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .aclass{ color: red; } .bclass{ color: blue; } .cclass{ fo 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script src="vue.min.js" type="text/javascript" charset="utf-8"></script> </head> 阅读全文
摘要:
app.vue <template> <div id="app"> <!-- 第二部:接受 v-on:titleChanged="updateTitle($event)"--> <second v-bind:title="title" v-on:titleChanged="updateTitle($ 阅读全文
摘要:
app.vue <template> <div id="app"> <!-- 绑定属性 "users"data里的--> <first v-bind:users="users"></first> <first v-bind:users="users"></first> <!-- 绑定 检测传值 -- 阅读全文
摘要:
<template> <div id="app"> <!-- 绑定属性 "users"data里的--> <first v-bind:users="users"></first> </div></template> <script>import Header from './components/H 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> /*去除默认样式*/ *{ margin: 0; padding: 0; } /*设置外面的大盒子*/ .box 阅读全文
摘要:
app.vue <!-- 模板 html--><template> <div id="app">{{title}}<users></users></div></template><!-- 行为 --><script>// 局部注册import Users from './components/Use 阅读全文