variable in javascript statement

后端 未结 2 852
暖寄归人
暖寄归人 2021-01-05 05:18

How does one add a variable string in this javascript statement? where name may correspond to any valid string , say WebkitTransform or Moztransform,etc

docu         


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-05 06:02

    There are 2 ways of accessing values in javascript objects. The first one is by using the dot operator(e.g. object.memberName). The second one is by using the square bracket notation(e.g. object['memberName']).

提交回复
热议问题