对象属性的获取

1、通过中括号来获取

 let id = target["uuid"] || target["id"];

 

posted @ 2022-09-15 19:57  jiaxin2015  阅读(45)  评论(0)    收藏  举报