
vue.js
文章平均质量分 52
程序员库里
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vue 解决axios请求出现前端跨域问题
vue 解决axios请求出现前端跨域问题原创 2021-12-14 13:05:11 · 1698 阅读 · 0 评论 -
vue之留言板
window.onload=function(){ new Vue({ el:'#box', data:{ myData:[], username:'', age:'',原创 2017-09-24 14:15:52 · 1102 阅读 · 0 评论 -
Vue之监听数据变化
1.轻度监视 window.onload=function(){ var vm=new Vue({ el:'#box', data:{ a:111,原创 2017-09-24 14:25:38 · 13228 阅读 · 0 评论 -
Vue之自定义指令
使用Vue.directive();1.直接自定义名称 :red Vue.directive('red',function(){ this.el.style.background='red'; }); window.o原创 2017-09-24 14:55:34 · 469 阅读 · 0 评论 -
Vue之生命周期
{{msg}} var vm=new Vue({ el:'#box', data:{ msg:'well' }, created:function(){ alert('实例已经创建');原创 2017-09-24 15:36:01 · 389 阅读 · 0 评论 -
Vue之计算属性
计算属性:computed1.简单的计算 a => {{a}} b => {{b}} v原创 2017-09-24 15:26:36 · 402 阅读 · 0 评论 -
Vue之自定义过滤器
使用Vue.filter('过滤器名称',方法);1. {{a | toDou}} Vue.filter('toDou',function(input){ return input<10?'0'原创 2017-09-24 15:11:48 · 336 阅读 · 0 评论 -
vue(1)
1.vue中的hello world vue {{message}} new Vue({ el:'#app', data:{ message:'hello world' } })原创 2017-09-10 14:15:21 · 409 阅读 · 0 评论 -
vue---组件注册
子组件注册var myHeaderChild={ template:'I am a my header child' } var myHeader={ template:'', components:{ 'my-header-child':myHeaderChild } } new Vue({ el:'#app', data:{ word:'he原创 2017-09-10 15:43:47 · 319 阅读 · 0 评论 -
Vue之仿百度搜索框
先上代码 .gray{ background: #ccc; } window.onload=function(){ new Vue({ el:'body',原创 2017-09-24 12:40:51 · 4433 阅读 · 1 评论 -
Vue之交互
1.get() window.onload=function(){ new Vue({ el:'body', data:{ },原创 2017-09-24 11:31:53 · 516 阅读 · 0 评论 -
Vue之style的用法
Vue中style的用法总结如下:v-bind:style 简写:style1.基本用法 .red{ color: red; } .blue{ background: blue; }原创 2017-09-23 23:15:15 · 58658 阅读 · 1 评论 -
Vue之过滤器
Vue中有内置的一些过滤器:加上 | 这个管道符 ,再加上过滤属性 .red{ color: red; } .blue{ background: blue; } windo原创 2017-09-23 23:34:46 · 443 阅读 · 0 评论 -
Vue之属性
Vue中的属性:举例看一下就明白了。 window.onload=function(){ new Vue({ el:'#box', data:{ url原创 2017-09-23 23:41:08 · 858 阅读 · 0 评论 -
Vue之for循环
Vue中for循环的用法总结如下:1.基本用法 v-for window.onload=function(){ new Vue({ el:'#box', data:{原创 2017-09-24 10:03:09 · 22888 阅读 · 0 评论 -
Vue之基础事件
1.基础事件,先弹框试试 window.onload=function(){ new Vue({ el:'#box', data:{ //数据 arr:['原创 2017-09-24 10:26:39 · 407 阅读 · 0 评论 -
Vue之阻止默认行为
1.使用原生js实现点击右键阻止默认行为 window.onload=function(){ new Vue({ el:'#box', data:{ },原创 2017-09-24 10:40:52 · 12356 阅读 · 0 评论 -
Vue之事件冒泡
1. 原生事件冒泡 window.onload=function(){ new Vue({ el:'#box', data:{ },原创 2017-09-24 10:49:25 · 843 阅读 · 0 评论 -
Vue之键盘事件
1.使用keydown触发事件 window.onload=function(){ new Vue({ el:'#box', data:{ },原创 2017-09-24 11:01:09 · 1986 阅读 · 0 评论 -
Vue之class的
Vue中class的使用总结如下:使用形式v-bind:class 简写:class1.在数组中使用一个class VUE .red{ color: red; } .blue{ background: blue;原创 2017-09-23 22:20:20 · 695 阅读 · 0 评论