js中用$来获取class的,非jquery function $(id){return typeof id === "string" ? document.getElementById(id) : id;}