现在的位置: 首页 > 综合 > 正文

javascript 关于 object 与 Function 不理解?

2013年04月17日 ⁄ 综合 ⁄ 共 264字 ⁄ 字号 评论关闭

<script>

 /**??为什么 per 不是 Function类型?
 * per 是 Person,person是Function
 */

 function Person(){};

 var per = new Person();
 alert(per instanceof Person);
 alert(Person instanceof Function);
 alert(Person instanceof Object);
 alert(per instanceof Object);
 alert(per instanceof Function);
 

</script>

抱歉!评论已关闭.