自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(86)
  • 收藏
  • 关注

原创 vue的route路游-界面导航-一级路游

body{ background-color:#E8E8E8 ; } 梦起航 默认会被渲染成一个 `` 标签 -

2017-11-23 22:14:49 295

原创 vue的route路游-界面导航-多级路游

body{ background-color:#E8E8E8 ; } 梦起航 默认会被渲染成一个 `` 标签 -

2017-11-23 22:14:11 392

原创 vue 的局部组件

//创建组件构造器 let Profile=Vue.extend({ template:' 今天已经是冬天了' }) let Profile2=Vue.extend({ template:' vvvvvvvvvvvvvv' }) //创建一个全局的组件// Vue.component('runoob', Profile) new

2017-11-23 22:14:01 320

原创 vue的实名插槽

嘻嘻嘻

2017-11-22 17:29:34 279

原创 vue的匿名插槽

Slet插槽--实现内容的分发vv不过 这是一个花姑娘 插槽的头部 可以替换任何一个标签 插槽的尾部 Vue.component( 'my-slot',{ temp

2017-11-22 17:03:07 354

原创 vue的自定义主键

自定义事件:on监听事件和emit触发事件!DOCTYPE html> 所有按钮一共点击了{{totalcount}}次 点击了{{counter}}次 Vue.component( 'my-btn',{

2017-11-22 16:26:33 2072

原创 vue的父子构造器

//创建子组件构造器 let child1= Vue.extend({ template:'' }) let child2=Vue.extend({ template:' ' }) //创建一个父级的组件 Vue.component('child' ,child1) Vue.component('parent' ,{compo

2017-11-22 15:08:05 181

原创 vue的template标签

我是刘洋 // Vue.component('child' ,child1) Vue.component('my-div',{template:'#my_div'}) new Vue({ el:'#app' })

2017-11-22 15:06:56 4037

原创 vue的script和template用法一样

我是刘洋 // Vue.component('child' ,child1) Vue.component('my-div',{template:'#my_div'}) new Vue({ el:'#app' })

2017-11-22 15:06:16 2753

原创 vue 的data属性

我是刘洋 {{message}} // Vue.component('child' ,child1) Vue.component('my-div',{template:'#my_div',data(){//必须是函数在component里面 return{message:"啛啛喳喳错错错错"} }

2017-11-22 15:05:34 2369

原创 vue的data为何是个函数

首先他只有是函数才可以是一个独立的对象 点击次数{{counter}} // Vue.component('child' ,child1) Vue.component('my-div',{template:'#my_div',data(){//必须是函

2017-11-22 15:04:29 601

原创 vue的主键和子主键的传播props

{{message}} // Vue.component('child' ,child1) Vue.component('my-div',{template:'#my_div',props:['message','imgsrc'] }) new Vue({ el:'#app'

2017-11-22 15:03:51 1111

原创 vue的多层主键的通信

{{title}} let Child1=Vue.extend({ template:'#my_img', props:['imgsrc'] }) let Child2=Vue.extend({ template:'#my_title', props:['title'] })

2017-11-22 15:03:27 478

原创 vue的全局主键

//创建组件构造器 let Profile=Vue.extend({ template:' 今天已经是冬天了' }) //创建一个全局的组件 Vue.component('runoob', Profile) new Vue({ el:'#app' }) new Vue({ el:'#app1'

2017-11-21 15:15:42 1344

原创 let和var区别

1:let适用于局部变量中,用{}包裹起来;2:let,不会变量的提升:3:let在相同的作用域下不能声明相同的变量

2017-11-21 13:13:09 163

原创 vue的v-for小练习表单

table{ width:800px; border: 1px solid darkorange; text-align: center; } thead{ background-color: orange; } 姓名

2017-11-21 13:12:47 543

原创 vue的v-text和v-html

{{msg}} 哈哈 new Vue({ el:'#app', data:{ msg:'今天是一个好天气', html:' ' } })

2017-11-21 13:12:16 620

原创 vue的bind练习

.active{ background-color:orange; font-size: 20px; color: #fff; } {{college}} new Vue({ el:'#app', data:{

2017-11-21 13:11:33 408

原创 vue的v-on

.active{ background-color:orange; font-size: 20px; color: #fff; } {{msg}} 学习 xx xbbbbbx new Vue({ el:'#app',

2017-11-21 13:11:03 183

原创 vue的小练习

#app { margin: 50px auto; width: 500px; } fieldset{ border: 1px solid orange; } fieldset input{ width: 400px; height: 30px; margin: 10px 0; } table{ width: 500

2017-11-21 13:10:24 164

原创 vue.js计算属性

#app { margin: 50px auto; width: 500px; } fieldset{ border: 1px solid orange; } fieldset input{ width: 400px; height: 30px; margin: 10px 0; } table{ width: 500

2017-11-21 13:10:00 373

原创 vue的计算属性的set方法--几乎不用,了解就行

#app { margin: 50px auto; width: 500px; } fieldset{ border: 1px solid orange; } fieldset input{ width: 400px; height: 30px; margin: 10px 0; } table{ width: 500

2017-11-21 13:09:08 2503

原创 vue的解构

1:数据的渲染/数据的同步:2:组件化/模块化3:其他功能:路游、ajax、文档流vue.js学习资源vue.js中文官网-http://cn.vuejs.org/vuejs源码-http://github.com/vuejs/vuevuejs官方工具-https://github.com/vuejs

2017-11-21 13:07:27 1693

原创 vue的v_for

{{index+':'+score}} {{f+':'+index}} new Vue({ el:'#app', data:{ s:[90,67,5,6,44,33,52,24,87,90,93,64], dog:{name:'旺财',age:3,heigh

2017-11-18 11:39:03 159

原创 vue的v_if小练习

请输入成绩然后会显示对应的等级 =90">优秀 =75">良 =60">合格 不合格 190'>{{height}} new Vue({ el:'#app', data:{ s:71, height:180 } })

2017-11-18 11:10:48 184

原创 vue的v_else

必须和v-if 一起用才行; 要显示出来 不要显示出来--> 171">小明身高{{height}} xxx-->//中间不可以添加东西,不然会报错,if和else 要链接使用 小明身高不足171 new Vue({ el:'#app', data:{ show:true,

2017-11-18 10:46:01 702

原创 vue的v_show

要显示出来 不要显示出来 180">小明身高{{height}} new Vue({ el:'#app', data:{ show:true, hide:false, height:170 } }) v_if和v_show其实用法是一样的,只是v_if的处理方式是直接把不需要的注释掉,而v_sho

2017-11-18 10:37:27 280

原创 vue的v_if

要显示出来 不要显示出来 new Vue({ el:'#app', data:{ show:true, hide:false } })

2017-11-18 10:17:49 152

原创 vue的v_once

fgffd{{msg}} 对对对{{msg}} new Vue({ el:'#app', data:{ msg:'今天的天气很好' } })

2017-11-18 10:12:38 597 1

原创 vue_的基本格式

fgffd{{msg}} 对对对{{msg}} new Vue({ el:'#app', data:{ msg:'今天的天气很好' } })

2017-11-18 10:07:25 762

原创 ES6_class语法糖

//1:构造函数 /** function Person(name,age){ this.name=name; this.age=age; } Person.prototype={ constructor:Person, pint(){ console.log('我叫'+this.name+'今年'+this.age+'岁'); } }

2017-11-18 01:02:21 350

原创 ES6_symbol

//symbol防止名字重复 let str1=Symbol(); let str2= Symbol(); console.log(str1==str2)//false console.log(typeof str1); console.log(typeof str2) //描述 let str3=Symbol('name'); let str4=Symbol('name');

2017-11-18 00:42:55 106

原创 ES6_数据结合map

//一:创建一个集合,基本用法可以用来去重 let obj1={a:1},obj2={b:2},obj3={}obj3.name='天空';obj3[obj1]='李四';obj3[obj2]='王五';console.log(obj1.toString())//[object Object]console.log(obj2.toString())//[object Obj

2017-11-17 23:30:48 150

原创 ES6_数据结合set

//一:创建一个集合,基本用法可以用来去重 let set=new Set(['张三','李四','王五','张三','李四']); console.log(set); //二:创建一个属性、 console.log(set.size)//3 //四个方法 //add con

2017-11-17 22:22:51 79

原创 ES6_结构赋值

//基本用法 let [name,age,sex]=['李四',18,'女'] console.log(name); console.log(age); console.log(sex) //基本用法 // let [name,age,sex]=['李四',18,'女']// console.log(na

2017-11-17 21:50:02 171

原创 ES6_let

1:只能在当前代码中有效{}2:作用域不会被提升3:不能重复声明

2017-11-17 21:06:01 80

原创 ES6_const

1:只能在当前代码中有效{}2:作用域不会被提升3:不能重复声明4:声明常量必须赋值,不然会报错,不如var a,

2017-11-17 20:56:24 101

原创 vue的结构

vue的结构:1:数据渲染/数据同步2;:组件化/模块化3其他功能:ajax/路由/数据流常用的Vue.js官网vuejs中文官网http://cn.vuejs.org/vuejs源码https://githup.com/vuejs/vuevuejs官方工具https://githup.com/vuejs

2017-11-17 10:17:51 217

原创 this的指向

var name='window'; var obj={ name:'vvvv', say:function(){ console.log(this.name); } } var fun=obj.say;// fun.call(window); fun()

2017-10-31 23:25:38 100

翻译 this练习题

//number//1underfind//判断是否是NaN

2017-10-29 04:25:03 115

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除