Skip to content

Commit 429dac6

Browse files
committed
updatereadme
1 parent 3a4f1b9 commit 429dac6

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
##各种原理性的、web开发关键点总结
22
[https://github.com/huang303513/WebKeyPointExploration](https://github.com/huang303513/WebKeyPointExploration)</br>
33
##各种基础原理和框架使用等
4+
[JavaScript中创建对象的7种模式](https://zhuanlan.zhihu.com/p/23226652)</br>
45
[关于base64编码的原理及实现](http://www.cnblogs.com/hongru/archive/2012/01/14/2321397.html)</br>
56
[Base64原理解析](http://mp.weixin.qq.com/s?__biz=MzAwNjI5MTYyMw==&mid=2651493342&idx=1&sn=5b559b4c90622ba35a6f19fce316d57d&chksm=80f19a16b786130016f907d6f8c7384c7fa170aebdb419e6c187159747f66d43b583e02bdb1d&mpshare=1&scene=23&srcid=1110TlP4r47xyYuwH8Rob14e#rd)</br>
67
[前端大牛们都学过哪些东西?](http://www.zhihu.com/question/22146521/answer/94842197)</br>
78
[vuejs入门基础](http://www.imooc.com/learn/694)</br>
89
[javascript私密花园](http://bonsaiden.github.io/JavaScript-Garden/zh/)</br>
910
[详解 JS 系列](https://segmentfault.com/bookmark/1230000002226575)</br>
11+
[prototype的本质](http://www.qdfuns.com/notes/17398/35b250e9b392675c44f4f0cd833b72c8.html)</br>
12+
[史上最全的CSS hack方式一览](http://blog.csdn.net/freshlover/article/details/12132801)</br>
13+
[浏览器~加载,解析,渲染](http://www.jianshu.com/p/e141d1543143)</br>
1014

1115
##webpack打包
1216
[经典webpack入门](http://www.tuicool.com/articles/ZjemEbJ)</br>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* @Author: huangchengdu
3+
* @Date: 2016-11-17 11:02:45
4+
* @Last Modified by: huangchengdu
5+
* @Last Modified time: 2016-11-17 11:22:55
6+
*/
7+
8+
//============工厂模式===============
9+
function createPerson(name,age,job) {
10+
var o = new Object();
11+
o.name = name;
12+
o.age = age;
13+
o.job = job;
14+
o.sayName = function(){
15+
alert(this.name);
16+
}
17+
return o;
18+
}
19+
var person1 = createPerson("wei",25,"software");
20+
var person1 = createPerson("bu",25,"software");
21+
22+
//===============构造函数模式=============
23+
function Person(name,age,job){
24+
this.name = name;
25+
this.age = age;
26+
this.job = job;
27+
this.sayName = function(){
28+
alert(this.name);
29+
}
30+
}
31+
var person1 = new Person("wei",25,"software");
32+
var person2 = new Person("bu",25,"software");
33+
console.log(person1 instanceof Object);
34+

0 commit comments

Comments
 (0)