js中constructor 与 typeof 用法 对么
<html><body><scriptlanguage="javascript">functionPerson(){}vara=newPerson();window.al...
<html>
<body>
<script language = " javascript">
function Person () {}
var a =new Person() ;
window.alert (a.constructor);
window.alert (typeof a);
</script>
</body>
</html>
为什没有弹窗呢 展开
<body>
<script language = " javascript">
function Person () {}
var a =new Person() ;
window.alert (a.constructor);
window.alert (typeof a);
</script>
</body>
</html>
为什没有弹窗呢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询