微信登录

JS - for循环

  1. for (var index in res.data) {
  2. title : res.data[index].title
  3. }

res.data:数组
index:下标
title:数组中的一个字段

JS - for循环