通过id进行判断⭐ const hero1 = { name: 'Batman' }; const hero2 = { name: 'Batman' }; hero1.name==hero2.name //true 转换为字符串进行比较