js动态参数作为Object的属性取值 var myObj = {"a":1,"b":2}; var a = 'a'; myObj[a] 就可以获取到 属性a的值了 转载于:https://my.oschina.net/u/3577266/blog/1137775