vue2.0
vue 2.0学习笔记
千钧~
天道不一定酬所有勤,但是,天道只酬勤
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Vue-2.0——前面学习的练习 layui+vue
使用layui+vue实现<!DOCTYPE html><html lang="en"> <head> <title>案列</title> <script src="./lib/vue-2.4.0.js"></script> <link rel="styleshee...原创 2020-02-05 11:47:05 · 667 阅读 · 0 评论 -
Vue-2.0——样式、v-for、v-show、v-if
在Vue中使用样式使用class样式数组<h1 :class="['red', 'thin']">这是一个邪恶的H1</h1>数组中使用三元表达式<h1 :class="['red', 'thin', isactive?'active':'']">这是一个邪恶的H1</h1>数组中嵌套对象<h1 :class="[...原创 2020-02-05 10:51:11 · 305 阅读 · 0 评论 -
Vue-2.0——v-text、v-html、v-cloak、v-on、v-bind——案例
案例 1、跑马灯效果<body> <div id="app"> <p v-text="msg">跑</p> <button @click="start">开始</button> <button @click="stop">停止</button> &l...原创 2020-02-04 21:34:42 · 283 阅读 · 0 评论 -
Vue-2.0——v-text、v-html、v-cloak、v-on、v-bind、v-model
1、 v-text和v-htmlv-text : 绑定的值一文本进行渲染 与 {{}} 效果类似区别在于 v-text 如果没有渲染完成将不做显示, {{}} 会回按 原样显示解决方式使用 v-cloak <!DOCTYPE html><html lang="en"><head> <title>hello.vue</...原创 2020-02-04 21:12:53 · 171 阅读 · 0 评论 -
Vue-2.0——简介、环境准备、第一个vue
标题原创 2020-02-04 20:22:07 · 663 阅读 · 0 评论
分享