1 Matching Annotations
- Nov 2018
-
blog.oyanglul.us blog.oyanglul.us
-
var Multipler = function(inc){<br> this.inc = inc;<br> }<br> Multipler.prototype.multiple = function(numbers){<br> return numbers.map(function(number){<br> return this.inc * number;<br> }, this)<br> }
map 接受第二个参数, 绑定 this
-