var add = function(num1,num2,num3){ alert(num1);}add.length是函数期望接收到参数的个数arguments.length是函数实际接收的参数的个数2.JavaScript中有五种原始类型:Undefined,Null,Boolean,Number,String3.Undefined的值只有一个undefined4.Null的值只有一个是null5.Boolean的值有两个:true,false6.JavaScript中没有char这个类型,String var s="wangshuxin"; alert(typeof Read More
将本段代码放在网页中:<script language="JavaScript"> function addfavorite(url,title){ var fav_url = url; var fav_title = title; if (document.all && window.external){ window.external.AddFavorite(fav_url,fav_title); }else if (window.sidebar){ window.sidebar.addPanel(fav_title,fav_url,&quo Read More