<script> var test={aa:12,bb:34};//或者var test={}; var cc= "acqId" test[cc]=12; alert(test[cc]) </script> 使用场景 function objectTest() { var test = { aa: , bb: }; var cc = "acqId" test[cc] = ; $.ajax({ url: xxx/getReslut.htm, t…
一个辅助对象,用于给属性排序 class KeyValue implements Comparable<KeyValue>{ String key; Object value; @Override public int compareTo(KeyValue another) { return this.key.compareTo(another.key); } } 两个函数: /** * get a series of object's properties * @param obj * @r…