Jdi*_*zle 2 javascript where backbone.js
我正在读一本关于JS快速原型制作的书.这行代码:
var appleModel = this.collection.where({name: appleName})[0];
Run Code Online (Sandbox Code Playgroud)
我知道where()在集合中返回匹配的模型.但到底是[0]做什么的呢?
| 归档时间: |
|
| 查看次数: |
8420 次 |
| 最近记录: |