javascript 方法一些使用方法 时间:2020-05-12 人气:1 无标题文档 <script language="javascript" type="text/javascript" > 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"):""; } </script> <script> var newopen = function(i) { return function() { location.replace("//www.qb5200.com"); } } if (document.getElementById("btnan").attachEvent) { document.getElementById("btnan").attachEvent("onclick",newopen("popo")); } else { document.getElementById("btnan").addEventListener("click",newopen("tyty"),false); } </script> [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容