美文网首页
2019-08-07

2019-08-07

作者: lynPositive | 来源:发表于2019-08-07 11:20 被阅读0次

    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