日期:2014-05-16  浏览次数:20345 次

javascript Function对象有属性和方法吗?
看下面的代码,我试图输出Function对象有哪些属性和方法,或是结果什么都没有输出,为什么?

<!DOCTYPE   html   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN "   "http://www.w3.org/TR/html4/loose.dtd ">
<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=GB18030 ">
<title> Insert   title   here </title>
</head>
<body>
<p   id= "test "> tt </p>
<p   id= "test1 "> tt1 </p>

for   (i   in   Function){
  document.getElementById( "test1 ").innerHTML   =   document.getElementById( "test1 ").innerHTML+i+ " <br> ";
}
  </script>
</body>
</html>

为什么没有输出?   Function没有属性和方法吗?


------解决方案--------------------
http://blog.csdn.net/aimingoo/category/168163.aspx?PageNumber=4

 JavaScript面向对象的支持

看看这个

------解决方案--------------------
系统方法是隐藏的。。。for in 不出来的说。。。 - -