没有合适的资源?快使用搜索试试~ 我知道了~
es6-destructuring:ES6 解构到基于 ES5 重铸的变换
共17个文件
js:12个
gitignore:1个
json:1个
需积分: 12 0 下载量 144 浏览量
2021-07-04
00:45:16
上传
评论
收藏 12KB ZIP 举报
温馨提示
es6-解构 脱糖为 ES5。 var { x , y } = z ; function x ( x , { y } ) { } 编译成这样: var x = z . x , y = z . y ; function x ( arg$0 ) { var y = arg$0 . y ; } 安装 $ npm install es6-destructuring 用法 $ node > var compile = require ( 'es6-destructuring' ) . compile ; [ Function ] > compile ( 'var {x, y} = z;' ) . code ; 'var x = z.x, y = z.y;' 命令行 如果通过npm安装,将提供一个名为es6-destructuring的命令行工具。 $ echo "var {x,
资源推荐
资源详情
资源评论
收起资源包目录
es6-destructuring-master.zip (17个子文件)
es6-destructuring-master
.gitignore 32B
package.json 702B
bin
es6-destructuring 2KB
LICENSE 2KB
README.md 1KB
lib
index.js 8KB
test
examples
assignmentDestructuring.js 1KB
emptyPattern.js 391B
mixedPattern.js 1KB
simpleValue.js 604B
functionDestructuring.js 1011B
nested.js 114B
arrayElision.js 288B
restParameter.js 770B
complexValueExpression.js 366B
variableRenaming.js 560B
runner.js 1KB
共 17 条
- 1
资源评论
刘岩Lyle
- 粉丝: 41
- 资源: 4680
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功