实现包装而已 也可能是用到其他js框架基本写法
var $ = function (id) {
return "string" == typeof id ? document.getElementById(id) : id;
};