Skip to content

Instantly share code, notes, and snippets.

View jiukunz's full-sized avatar
:octocat:
Focusing

Jiukun Zhang jiukunz

:octocat:
Focusing
View GitHub Profile
@jiukunz
jiukunz / 0_reuse_code.js
Created April 12, 2014 11:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
####Installing Ghost & Getting Started
http://docs.ghost.org/installation/deploy/
####Integrate ghost with highlight
http://suksit.com/integrating-highlight-js-into-ghost/
####What you need to do a StackEdit
ACE
Bootstrap
Bootstrap Tour
@jiukunz
jiukunz / 简单的数据绘制工具
Created March 20, 2014 06:39
简单的数据绘制工具
https://variancecharts.com/

JavaScript是一个类型无关(class-free),面向对象的语言,使用的时原型集成方式而非经典的类继承方式。

为什么要说继承呢? 有两个原因:

  1. Javascript是一种弱类型的语言。弱类型语言有个好处,就是对象之间转换比较容易。要知道,在强类型语言中(比如Java),对象如果没有继承关系,那么是不能相互转换的。但在javascript中,所关心的只是对象中有没有我想要调用的方法,想要获取的属性,只要你张的像鸭子,那我就认为你是个鸭子(Duck typing),这就可以很方便的将对象作为参数在函数中传来传去,而不用在意函数想要接受的参数类型。

###constructor ###new ###prototype