使用
insert()of的方法
List添加项目,这里的索引将是
0在开头添加项目。例:
List<String> list = ["B", "C", "D"];list.insert(0, "A"); // at index 0 we are adding A// list now becomes ["A", "B", "C", "D"]

使用
insert()of的方法
List添加项目,这里的索引将是
0在开头添加项目。例:
List<String> list = ["B", "C", "D"];list.insert(0, "A"); // at index 0 we are adding A// list now becomes ["A", "B", "C", "D"]