摘要:
function $(id){ return document.getElementById(id); } window.onload = function(){ $('aaa').onmousedown=function(event){ ... 阅读全文
摘要:
function getByClass(clName,parent){ var oParent = parent?getElementById(parent):document, //三元运算 判断传进来的参数为真是parent,为假是document; ... 阅读全文