4

是否可以同时指定 changePage 方向的类型和该 changePage 的方向?就像是:$.mobile.changePage("mySpecialPlace.html", {transition: "slideup"}, {direction: reverse});

4

1 回答 1

10

文档:http: //jquerymobile.com/demos/1.1.1/docs/api/methods.html

您很接近,但请查看我上面链接到的文档,它会向您显示您可以为该.changePage()方法指定的所有选项的确切结构。

$.mobile.changePage("mySpecialPlace.html", {
    transition : "slideup",
    reverse    : true        //notice options are passed via the same object
});
于 2012-07-31T20:49:31.253 回答