js动态参数作为Object的属性取值时间:2023-02-07 03:28:26js动态参数作为Object的属性取值var myObj = {"a":1,"b":2};var a = 'a';myObj[a] 就可以获取到 属性a的值了