开发者

why does a jquery trigger click not update the location.hash?

Given something like ... trigger('click')

Where the selector is a link like so:

<a href="#/wow/2">click it </a>

Why does that hash not end u开发者_C百科p in the URL or triggering a $(window).hashchange event?

Thanks


trigger("click") fires the onclick event handler, it is not the same as a person actually clicking.

example: http://jsfiddle.net/dffsC/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜