阅读背景:

如何判断一个页面是否跳转到javascript中的锚(#)?

来源:互联网 

I have some javascript that can appear on many different pages. Sometimes those pages have been accessed via a URL containing an anchor reference (#comment-100, for instance). In those cases I want the javascript to delay executing until after the window has jumped. Right now I'm just using a delay but that's pretty hackish and obviously doesn't work in all cases. I can't seem to find any sort of DOM event that corresponds to the window "jump".I have some javascript that can appear on many




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: