var thisId = window.location.hash;
alert(thisId);

输出

#2

04-29 21:00