v2.0.0
版本发布时间: 2017-05-20 02:34:33
defunkt/jquery-pjax最新发布版本:v2.0.1(2017-05-21 03:04:05)
This release brings jQuery 3.x compatibility.
Backwards-incompatible changes:
-
The value of
container
parameter to pjax functions should be a string selector, and not a jQuery object anymore. -
The value of
container
parameter cannot be a DOM node with an ID anymore. -
The call signature
$("#main").pjax("a")
is not supported anymore because the container selector#main
cannot be inferred from the context of the$.fn.pjax()
call. To fix this, pass the container selector explicitly:$("#main").pjax("a", "#main")