至于管理员将我的贴子置为新手贴,我本来也就是新人。我只想在这上面留下我的学习的印迹.
<html>
<head>
<!--script type="text/javascript" src="javascript_node2.js"></script-->
</head>
<script language="javascript">
function testParam(){
var param="";
for(var i=0;i<arguments.length;i++){//arguments javascript中内置的函数参数对象
param+=arguments[i];
}
alert(param);
}
testParam(123,"avb");
testParam("adsd","sfsdf");
//javascript 动态函数最后一个参数就是普通函数的方法体
var square=new Function("x","y","var sum;sum=x*x+y*y;return sum;");//动态函数的声明方式
alert(square(2,3));
var strurl=encodeURI("http://127.0.0.1:8080/bperp?name=王伟&age=2 4");//javascript 内置函数字符转换函数
alert(strurl);
var strUrl=decodeURI(strurl);//它和encodeURI一样,也是JavaScript内置函数,但它和encode功能相反。
alert(strUrl);
//window.open()函数使用
window.open("information.html","_blank"/*"top=0,left=0,width=200,height=200,toolbar=no"*/,"fullscreen=yes toolbar=no titlebar=no");
</script>
</html>
<html>
<script>
window.setTimeout("window.close()",5000);
window.setInterval("grow()",100);
function grow(){
//此函数可以改变window窗口的大小
window.resizeBy(5,5);
}
</script>
<body>
<center>
<h3>通知</h3>
<p>5秒钟后将关闭本窗口</p>
<center>
<body>
</html>