📅  最后修改于: 2022-03-11 15:03:18.947000             🧑  作者: Mango
var myObject = {'key':'something', 'other-key':'something else','another-key': 'another thing'}
var count = Object.keys(myObject).length;