重複の可能性:
JavaScript オブジェクトのメソッドを動的に呼び出す方法
さまざまなプロパティの機能があります
setCar : function() {}
setBike : function() {}
setAirPlane : function (){}
フォーマットキー値にオブジェクトがあります
var json = { Car : "Car1",
             Bike : "Bike1",
             AirPlane  : "test1" }
オブジェクトの値に応じて動的に set 関数を呼び出したい:
 updateProperties : function(json) {        
 for ( var property in json) {
     //set + property (AdditionalProperties[property])
 };   
プロパティには関数の名前 (Car,Bike,AirPlane) があり、AdditionalProperties[property] にはプロパティの値 ( Car1,Bike1,test1.
それは可能ですか?