解决办法 使用 Object.prototype.hasOwnProperty.call(params1, params2) 其中,params1表示需要从中查找指定键的对象;params2表示查找的键名