JS判断数据是否存在字段,存在提示结果const data = {name: 'a',addr: 'b',}console.log('name' in data) trueconsole.log('a2023-02-18JavaScript300