“VUE 基础”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第16行: | 第16行: | ||
官网:https://cn.vuejs.org/ | 官网:https://cn.vuejs.org/ | ||
− | 向导:https://v2.cn.vuejs.org/v2/guide/ | + | 向导:https://v2.cn.vuejs.org/v2/guide/<syntaxhighlight lang="html"> |
+ | <!DOCTYPE html> | ||
+ | <html lang="en"> | ||
+ | <head> | ||
+ | <meta charset="UTF-8"> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
+ | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
+ | <title>Vue基础</title> | ||
+ | </head> | ||
+ | <body> | ||
+ | <div id="app"> | ||
+ | {{message}} | ||
+ | </div> | ||
+ | <!-- 开发环境版本,包含了有帮助的命令行警告 --> | ||
+ | <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> | ||
+ | <script> | ||
+ | var app = new Vue({ | ||
+ | el:"#app", | ||
+ | data:{ | ||
+ | message:"Hello Vue!" | ||
+ | } | ||
+ | }) | ||
+ | </script> | ||
+ | </body> | ||
+ | </html> | ||
+ | </syntaxhighlight> |
2023年6月7日 (三) 05:31的版本
https://www.bilibili.com/video/BV12J411m7MG/?p=2
开发工具
VSCode、VSCode 安装 Live Server 插件
Vue 简介
1.JavaScript 框架
2.简化 DOM 操作
3.响应式数据驱动
第一个 Vue 程序
https://www.bilibili.com/video/BV12J411m7MG/?p=3
向导:https://v2.cn.vuejs.org/v2/guide/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue基础</title>
</head>
<body>
<div id="app">
{{message}}
</div>
<!-- 开发环境版本,包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
var app = new Vue({
el:"#app",
data:{
message:"Hello Vue!"
}
})
</script>
</body>
</html>