很多人喜欢把 $ 定义成 document.getElementById 的缩写,比如:
function $(id){
return typeof(id) == "object" ? id : document.getElementById(id);
}