javascript get map length 2017-10-03 本文已影响0人 StevenZack var map = {1:'1', 2:'2', 3:'3'}; console.log(Object.getOwnPropertyNames(map).length);