多項(xiàng)選擇題

foo對(duì)象有att屬性,那么獲取att屬性的值,以下哪些做法是可以的?()

A.foo.att
B.foo(“att”)
C.foo[“att”]
D.foo{“att”}
E.foo[“a”+“t”+“t”]

微信掃碼免費(fèi)搜題