<script>
person = new Object()
person.name = "Tim Scarfe"
person.height = "6Ft"
person.run = function() {
this.state = "running"
this.speed = "4ms^-1"}
var obj = new person();
alert(obj.name);
</script>
问题:
在控制台日志中,它显示“TypeError:人不是构造函数”,那么上面的脚本有什么问题?