private function init():void { //新建对象 var obj:Object = new Object(); //增加key-value obj["name"] = "liguoliang"; //格式: Object[key] = value obj[; //注意: key必须为String, value可以为任意类型 //使用for..in...遍历所有的key - value for(var k:String in obj) { t
1.需要用到的包 2.实例 实体类 people package com.shore.entity; /** * @author DSHORE/2019-4-19 * */ public class People { private int pid; private String pname; private int age; private String job; private double sal; public People() { } public People(int pid, St