js获取对象的长度 var obj= { "name": "wuqian", "sex": "famale", "hello": "娆墨旧染" }; var len = Object.keys(obj).length; console.log(len)