js获取对象的长度时间:2022-10-06 08:27:38 var obj= { "name": "wuqian", "sex": "famale", "hello": "娆墨旧染" }; var len = Object.keys(obj).length; console.log(len)