AJP*_*AJP 6 javascript apply array-splice coffeescript
在用于数组拼接的CoffeeScript文档中,尾随的目的是, _ref什么?
CoffeeScript的:
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
numbers[3..6] = [-3, -4, -5, -6]
Run Code Online (Sandbox Code Playgroud)
编译为:
var numbers, _ref;
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
[].splice.apply(numbers, [3, 4].concat(_ref = [-3, -4, -5, -6])), _ref;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2665 次 |
| 最近记录: |