摘要: function $(id){ return document.getElementById(id); } window.onload = function(){ $('aaa').onmousedown=function(event){ ... 阅读全文
posted @ 2015-04-14 16:23 背包旅行的蚂蚁 阅读(98) 评论(0) 推荐(0) 编辑
摘要: function getByClass(clName,parent){ var oParent = parent?getElementById(parent):document, //三元运算 判断传进来的参数为真是parent,为假是document; ... 阅读全文
posted @ 2015-04-14 11:35 背包旅行的蚂蚁 阅读(232) 评论(0) 推荐(0) 编辑