Home » パソコン » 言語 etc... » JavaScript » [Javascript] Study » [Javascript] 連想配列
[Javascript] 連想配列
post["HONDA"] = 1;
post["YAMAHA"] = 2;
→添字名"HONDA"に1を、添字名"YAMAHA"に2を代入
document.write("HONDA Bike is",post["HONDA"],"st.");
post["YAMAHA"] = 2;
→添字名"HONDA"に1を、添字名"YAMAHA"に2を代入
document.write("HONDA Bike is",post["HONDA"],"st.");