javascript 方法一些使用方法
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" html xmlns="http://www.w3.org/1999/xhtml" head meta http-equiv="Content-Type" content="text/html; charset=utf-8" / titl
function chens(a,b,c,d)
{
this.a=a==null?alert("a"):"chen";
b==null?alert("b"):"";
c==null?alert("c"):"";
document.write(this.a);
this.d==null?alert("d"):"";
}
var newopen = function(i)
{
return function()
{
location.replace("http://www.com-edu.cn");
}
}
if (document.getElementById("btnan").attachEvent)
{
document.getElementById("btnan").attachEvent("onclick",newopen("popo"));
}
else
{
document.getElementById("btnan").addEventListener("click",newopen("tyty"),false);
}
上一篇: iis php安装教程【图文详解】
下一篇: php封装函数步骤