author suo
  class ConfigParse { public constructor ( ) { } public static getJosn ( key ) { var data = RES . getRes ( key ) ; var copy = data . slice ( 0 ) ; return copy ; } /**
     * 根据属性A获得属性B值
     */ public static getPropertyByProperty ( conf , paramA , paramAValue , paramB ) { if ( ! conf || ! ( conf instanceof Array ) || conf . length == 0 ) { return ; } for ( var subConf of conf ) { var item = < Object > subConf ; if ( item . hasOwnProperty ( paramA ) && item . hasOwnProperty ( paramB ) ) { if ( item [ paramA ] == paramAValue ) { return item [ paramB ] ; } } } return null ; } }