flutter 对象新增属性
1.
Map data = {};
data = {"name":"xiaohua";};
data = {"age":1};
print(data);
----------------------{age:1}
2.
Map data = {};
data = {"name":"xiaohua";};
data["age"] = 1;
print(data);
--------------{name:"xiaohua",age:1}
flutter 对象新增属性
1.
Map data = {};
data = {"name":"xiaohua";};
data = {"age":1};
print(data);
----------------------{age:1}
2.
Map data = {};
data = {"name":"xiaohua";};
data["age"] = 1;
print(data);
--------------{name:"xiaohua",age:1}
本文标题:2019-08-07
本文链接:https://www.haomeiwen.com/subject/sfxodctx.html
网友评论