本月博客排行
-
第1名
kaizi1992 -
第2名
arpenker -
第3名
wy_19921005 - hanbaohong
- jh108020
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
青否云后端云 - vipbooks
- wy_19921005
- benladeng5225
- fantaxy025025
- e_e
- kaizi1992
- tanling8334
- arpenker
- sam123456gz
- javashop
- zysnba
- xiangjie88
- lemonhandsome
- wallimn
- ganxueyun
- Xeden
- zhanjia
- xyuma
- wangchen.ily
- jh108020
- johnsmith9th
- zxq_2017
- jbosscn
- forestqqqq
- ajinn
- daizj
- xpenxpen
- ranbuijj
- 喧嚣求静
- kingwell.leng
- silverend
- kristy_yy
- lchb139128
- jveqi
- lich0079
- lzyfn123
- java-007
- sunj
- yeluowuhen
- lerf
- xiaoxinye
- flashsing123
- zhangjijun
- lxguy
- bosschen
- lyndon.lin
- sunnylocus
最新文章列表
ES6中this和箭头方法
之前写多页面应用时,一个页面就是全部,this常常默认是全局对象,但this的正确理解不限于此,特别是大型复杂结构的脚本。例如:
export class ThisScope {
txt:string = "hello this scope"
cf1 () {
return function() {
this. ...
array的reduce
ES5 (js 1.8)加入了 reduce
接收一个函数,然后从左到右遍历item,直到reduce到一个值。
arr.reduce(callback, [initialValue]);
参数:
callback(previousValue, currentValue, index, array)
previousValue ...
ES5之Object.seal
Object.seal
来自ES5
可以封闭指定的对象:只能修改对应的属性值,但是不能删除和添加等操作
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/seal
7月30日的广州演讲视频和Slides
7月30日在W3CTech广州站活动上的演讲,题目是:ECMAScript 5 —— Improve the Safety of JavaScript 。主要内容是对ECMAScript 5的Strict模式的几个实例介绍,以及其他几个关于代码安全性的例子。
视频:http://v.youku.com/v_playlist/f6520341o1p10.html
Slides:http://hax. ...