var $ = function( id ) { return document.getElementById( id ); };
$( 'someID' )
Here I used $
, but you can use any valid variable name.
var byId = function( id ) { return document.getElementById( id ); };
byId( 'someID' )
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…