$的几种用法 1.用作函数名 类似于匿名函数 //不带参 function $(){ return document.getElementById("xxx"); } //带参 function $(Nid){ return document.getElementById(Nid); }