初学javascript,见如下代码:
function $(id){return(typeof(id)=="string")?document.getElementById(id):((typeof(id)=="object")?id:null);};function $(id){return(