Yinkai Chen

Results 46 issues of Yinkai Chen

**变量** ``` css @nice-blue: #5B83AD; @light-blue: @nice-blue + #111; #header { color: @light-blue; } ``` css: `#header { color: #6c94be; }` **混合** `.bordered{ border-bottom: 1px solid #ccc; }` //定义class //调用class...

# 继承 ## 一、原型链 ``` function SuperType() { this.property = true; } SuperType.prototype.getSuperValue = function() { return this.property; }; function SubType() { this.subproperty = false; } //继承了 SuperType SubType.prototype =...

# 创建对象 ## 一、工厂模式 封装一个函数,函数内部创建对象,添加属性方法并返回对象。 ``` function createPerson(name, age, job){ var o = new Object(); o.name = name; o.age = age; o.job = job; o.sayName = function(){ alert(this.name); }; return...

# 理解对象 ## 一、最简单的创建对象 ### 1.创建Object对象实例 ``` var person = new Object(); person.name = "Nicholas"; person.age = 29; person.job = "Software Engineer"; person.sayName = function(){ alert(this.name); }; ``` ### 2.字面量创建对象...

# CSS3结构选择器 ## E:nth-child(n) 选择所有在其父元素中第n个位置的匹配E的子元素。 注意,参数n可以是数字(1、2、3)、关键字(odd、even)、公式(2n、2n+3) 参数的索引从 1 开始。 tr:nth-child(3)匹配所有表格中第3排的tr; tr:nth-child(2n+1)匹配所有表格的奇数行; tr:nth-child(2n)匹配所有表格的偶数行; tr:nth-child(odd)匹配所有表格的奇数行; tr:nth-child(even)匹配所有表格的偶数行; > table { > table-layout: fixed; > border-collapse: collapse; > empty-cells: show; > } > >...

[PotreeDesktop](https://github.com/chenyinkai/PotreeDesktop) forked from this project. And i add electron-builder to package Electron app. you can run `npm run build` to package, the installation package will be in the `dist` folder.