What kinds of objects is this Javascript creating?

I am scrambling to fix a production error and am **not** a JS developer. Before my analysis can go any further I need to be absolutely confident that I am making some correct assumptions about the following line of code: var iVO = { "images":{} }; var thisImage = $(this).data("data"); iVO["images"][thisImage.fileKey] = thisImage; iVO["images"][thisImage.imageType] = imageType; iVO["images"][thisImage.uploadReason] = uploadReason; Here are my assumptions. If any are correct or misguided, please correct me: * `iVO` is an array of JSON objects * Each of these JSON objects is then given 3 properties (`fileKey`, `imageType` and `uploadReason`) The thing that I don't get is the significance of the `"images"` index, What is the value/meaning of `iVO["images"]`? What does information/objects this first/outer array represent?

以上就是What kinds of objects is this Javascript creating?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准