var box1=new LightBox("idBox");
$("i2").onclick=function(){box1.Show();}
var $ = function (id){
return "string" == typeof id ? document.getElementById(id): id;
};
...全文
734打赏收藏
这个onclick="这里该如何写"等同于贴中的语句
var box1=new LightBox("idBox"); $("i2").onclick=function(){box1.Show();} var $ = function (id){ return "string" == typeof id ? document.getElementById(id): id; };