摘要: vue cli下载 加载其他模块 module.vue 阅读全文
posted @ 2018-02-25 09:57 IT-caijw 阅读(339) 评论(0) 推荐(0) 编辑
摘要: components 组件 //组件 Vue.component('friend component', { props : ['friend'], filters:{ ageInOneYear(age) { return age + 1; }, fullName(value) { return ; 阅读全文
posted @ 2018-02-22 00:49 IT-caijw 阅读(121) 评论(0) 推荐(0) 编辑
摘要: directives 指令 const app = new Vue({ el : ' app', data : { friends: [ { first : 'bobby', last : 'banne', age : 25 }, { first : 'john', last : 'Baby', a 阅读全文
posted @ 2018-02-22 00:48 IT-caijw 阅读(163) 评论(0) 推荐(0) 编辑
摘要: vue02 filters computer html main.js const app = new Vue({ el : ' app', data : { bobby: { first : 'bobby', last : 'banne', age : 25 }, john : { first : 阅读全文
posted @ 2018-02-22 00:47 IT-caijw 阅读(236) 评论(0) 推荐(0) 编辑
摘要: vue学习01 index.html main.js const app = new Vue({ el : ' app',//挂载在哪个节点 data : { //数据存储 bobby: { name : 'bobby banne', age : 25 }, john : { name : 'joh 阅读全文
posted @ 2018-02-22 00:46 IT-caijw 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 5.7 Global对象 encodeURI encodeURIComponent decodeURI decodeURIComponent 用特殊的utf 8编码替换所有无效的字符,从而让浏览器能理解 eval 像一个完整的ECMAScript解析器 严格模式下可能,外部访问不了eval中创建的任 阅读全文
posted @ 2018-01-20 18:16 IT-caijw 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 5.6 基本包装类型(Boolean,Number,String) 基本类型不是对象为什么会有方法呢?(黑人?) 后台处理了一系列的操作,以下就是例子,创建后立即销毁 引用类型和基本包类型的主要区别就是对象的生存周期 引用类型:执行流离开当前作用域之前,都一直保存在内存中 基本类型包:只存在于代码执 阅读全文
posted @ 2018-01-06 16:21 IT-caijw 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ``` function Stack(){ var items = []; //进栈 this.push = function(element){ items.push(element); } //出栈 this.pop = function(){ return items.pop(); } //栈的长度 this.size = function(){ return ... 阅读全文
posted @ 2018-01-04 13:47 IT-caijw 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 实例 函数名是指向函数的指针,一个函数可能有多个名字 5.5.1 没有重载(深入理解) 将函数名想象成指针 5.5.2 函数声明与函数表达式 解析器解析的时候不是一视同仁:先读取函数声明,函数表达式要等解析器执行到它所在的代码行。 5.5.3 作为值的函数 5.5.4 函数内部属性 argument 阅读全文
posted @ 2017-12-30 19:51 IT-caijw 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 5.4 RegExp 类型 实例 g全局 i不区分大小写 m多行 5.4.1 RegExp 实例属性(global,ignoreCase, lastIndex, multiline, source) global: 布尔,是否设置了g ignoreCase 布尔,是否设置了i lastIndex 整 阅读全文
posted @ 2017-12-30 17:35 IT-caijw 阅读(101) 评论(0) 推荐(0) 编辑