原始数据:(20)[{…},{…},{…},{…},{…},{…},__ob__:Observer]0:dataContent:(...)topic:"年龄"1:dataContent:(...)topic:"性别"2:dataContent:(...)topic:"性别"3:{__ob__:Observer}4:{__ob__:Observer}删除数组对象topic字段相同的,图中有两个topic:性别,只想留住后面的,要删除前面那个topic:性别的,把下标为1的删除留下标为2的期望得到:(20)[{…},{…},{…},{…},{…},{…},__ob__:Observer]0:dataContent:(...)topic:"年龄"2:dataContent:(...)topic:"性别"3:{__ob__:Observer}4:{__ob__:Observer}更新:topic字段值不固定
一只斗牛犬
扬帆大鱼
相关分类