随笔分类 -  3.4vue

6vue分支循环
摘要:分支v-if <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta htt 阅读全文
posted @ 2020-08-01 18:39 知否知否, 阅读(124) 评论(0) 推荐(0)
5vue 样式绑定
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-08-01 17:34 知否知否, 阅读(85) 评论(0) 推荐(0)
4vue 属性绑定
摘要:属性绑定v-bind <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta 阅读全文
posted @ 2020-08-01 17:33 知否知否, 阅读(112) 评论(0) 推荐(0)
3vue
摘要:阻止冒泡 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http- 阅读全文
posted @ 2020-08-01 15:33 知否知否, 阅读(176) 评论(0) 推荐(0)
2vue
摘要:事件 v-on:click=“handle" @click="handle" handle创建在methods里 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content= 阅读全文
posted @ 2020-07-29 15:46 知否知否, 阅读(227) 评论(0) 推荐(0)
1vue模板语法
摘要:<body> <div id="app1"> <div>{{msg}}</div> </div> <script type="text/javascript" src="../vue.js"></script> <script type="text/javascript"> var vm = new 阅读全文
posted @ 2020-07-29 15:22 知否知否, 阅读(103) 评论(0) 推荐(0)