- 博客(9)
- 资源 (7)
- 收藏
- 关注
翻译 面向对象那些事(二)
1.对象之间的继承(5种方法) 前提条件: 现在有一个”动物”对象的构造函数。 function Animal(){ this.species = “动物”; } 还有一个”猫”对象的构造函数。 function Cat(name,color){ this.name = name; this.color = color; } (...
2017-12-27 11:45:05 137
翻译 js面向对象那些事(一)
1.缘起于构造函数 构造函数本身也是普通函数,但是在其内部使用了this对象指向构造函数本身。 每次实例化的新对象都包含一个constructor属性,指向他们的构造函数 function Cat(name,color){ this.name=name; this.color=color;} var cat1 = new Cat("大毛","黄色"); var cat2 = n
2017-12-27 11:39:25 150
转载 cxz
原博客地址www.19900507.com 父组件: editUser ref="editUser">editUser> /** * 编辑会员 */ handleEdit(row) { var _this=this; _this.$refs.editU
2017-12-23 15:05:54 297
翻译 解决vue-cli不能初始化webpack模板的问题
vue init webpack pro [Failed to download repo] [connect ETIMEDOUT 192.30.255.112]报这个错误 有人说是代理问题。我也不懂,但这个方法有用1.去github上下载要初始化的模板 https://github.com/vuejs-templates/webpack 或者直接用git去clone你要的模板。2.将下载好
2017-12-12 09:54:36 16344 3
翻译 es6.类的概念
es5的构造函数长这样:function Point(x,y){ this.x = x; this.y = y; } //实例方法 Point.prototype.toString = function () { return '(' + this.x + ', ' + this.y + ')'; };es6的类长这样:class Point { //构造方法 construct
2017-12-12 09:45:46 290
转载 新版vue-init 脚手架去除dev-server.js问题
原文地址:https://segmentfault.com/a/1190000012133507
2017-12-10 21:15:52 1880
翻译 es6-2.各种变量的解构赋值
数组的解构赋值 基本用法 ES6允许按照一定模式,从数组和对象中提取值,对变量进行赋值,这被称为解构(Destructuring)。 以前,为变量赋值,只能直接指定值。var a = 1;var b = 2;var c = 3;ES6允许写成下面这样。var [a, b, c] = [1, 2, 3];上面代码表示,可以从数组中提取值,按照对应位置,对变量赋值。 本质上,这种写法属于“模式匹
2017-12-04 14:11:18 140
翻译 es6学习-1 let&const
ES6新增了let命令,用来声明变量。它的用法类似于var,但是所声明的变量,只在let命令所在的代码块内有效。{ let a = 10; var b = 1; } a // ReferenceError: a is not defined. b // 1上面代码在代码块之中,分别用let和var声明了两个变量。然后在代码块之外调用这两个变量,结果let声明的变量报错,var声明的变量返回了
2017-12-04 12:22:42 181
转载 NodeJS实战:Express+Mongoose+ejs
原文网址,尊重原创https://www.cnblogs.com/highsea90/p/4308794.html NodeJS实战:Express+Mongoose+ejs 文章目录: 1、组件版本号 – –node – –express – –Mongoose 2、初始化项目 firstblood –
2017-12-01 15:08:04 582
custom_vue_router.rar
2019-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人