如何得到 JS 对象的个数??<script>
var obj = {"姓名":"于娜","年龄":31,"爱好":"旅游"};
alert(obj.length);
</script>这个有错!我想得到是数字 3