Vue记录
Vue记录,记录Vue代码
void1024
这个作者很懒,什么都没留下…
展开
-
6 列表渲染
1 部分1<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>列表渲染</title> <script type="text/javascript" src="js/vue.min.js"></script> </head> <body> <div id="app-1"> .原创 2020-07-22 11:09:38 · 191 阅读 · 0 评论 -
5 条件渲染
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>条件渲染</title> <script type="text/javascript" src="js/vue.min.js"></script> </head> <body> <div id="app-1"> <h1 .原创 2020-07-21 23:02:21 · 157 阅读 · 0 评论 -
4 Class 与 Style 绑定
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>index</title> <script type="text/javascript" src="js/vue.min.js"> </script> <style type="text/css"> .active { font-style: i.原创 2020-07-20 17:54:20 · 154 阅读 · 0 评论 -
3 计算属性和侦听器
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>主页</title> <script src="js/vue.js" type="text/javascript" charset="utf-8"></script> </head> <body> <div id="example">.原创 2020-07-20 15:57:54 · 134 阅读 · 0 评论 -
2 模板语法
<!DOCTYPE html><html lang="zh"><head> <meta charset="UTF-8"> <title>2</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script></head><body><div id="app-1"&.原创 2020-07-20 00:51:05 · 146 阅读 · 0 评论 -
1 创建一个Vue实例
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>主页</title> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script></head><body><div id="app"> <.原创 2020-07-19 19:53:23 · 219 阅读 · 0 评论