代码改变世界

阅读排行榜

满屏品字布局css

2014-09-16 00:28 by 陶俊龙, 2220 阅读, 收藏,
摘要: test 效果图: 阅读全文

js面试题,关于变量提升,作用域,全局变量

2017-05-10 00:13 by 陶俊龙, 508 阅读, 收藏,
摘要: /**********seperate line************/ var a = 10; function test() { a = 100; console.log(a); console.log(this.a); var a; console.log(a); } test(); VM3 阅读全文

js typeof的使用

2017-05-09 23:21 by 陶俊龙, 342 阅读, 收藏,
摘要: console.log(typeof 1) console.log(typeof '1') console.log(typeof true) console.log(typeof undefined) console.log(typeof null) VM142:1 numberVM142:3 st 阅读全文

js中闭包作用举例

2017-05-09 23:32 by 陶俊龙, 306 阅读, 收藏,
摘要: 模拟实现类的私有属性 function Boy(name){ this.name = name; var sex = 'boy'; this.saySex = function(){ console.log("my sex is "+sex) }; } var xiaoming = new Boy( 阅读全文

chrome新版不再支持-webkit-text-size-adjust

2014-09-15 17:08 by 陶俊龙, 299 阅读, 收藏,
摘要: 改用transform: scale(0.8); 阅读全文