Javascript中的arguments 对象
function
fn(a,b,c)
{
var
s
=
""
;
var
i;
s
+=
"
函数传入参数个数:
"
+
fn.arguments.length
+
"
\n
"
;
for
(i
=
0
;i
<
fn.arguments.length;i
++
)
{
s
+=
"
函数传入参数
"
+
i
+
"
:
"
+
fn.arguments[i]
+
"
\n
"
;
}
s
+=
"
函数实际参数个数:
"
+
fn.arguments.callee.length
+
"
\n
"
;
document.all.t.innerText
=
s
}
相关文档:
兼容IE、FireFox、Chrome
//加载js
function loadJs(){
if (!getObj('script_PlData')){
var scriptObj= document.createElement("script");
//scriptObj.id = 'script_1';
&nb ......
<HTML>
<HEAD>
<title>WEB页面导出为EXCEL文档的方法
</title>
</HEAD>
<body>
<BR>
<table id = "PrintA" width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor = "#61FF13">
<TR style="text-align : center;" mce_style="text-ali ......
@author songfeng
因为JS内对象的方法实际上是存储语句的一个类似于指针的东西. 其指向了内存的一个位置, 也就是其函数的位置,当然也可以让其指向一个变量值.
var foo = new Object();
&nbs ......
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......