jsLib
林克
要使用linq,只需对数组调用linq方法:
[ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ] . linq ( )
. where ( function ( i ) { return i > 1 ; } )
. where ( function ( i ) { return i < 6>= 6 ; } )
. toArray ( ) // result is [6, 7, 8, 9]
支持的方法:
.where(fn)-fn预先定义
.selec
评论0
最新资源