2012-07-31 68 views
4

是否可以指定changePage方向的类型以及changePage方向?喜欢的东西:$.mobile.changePage("mySpecialPlace.html", {transition: "slideup"}, {direction: reverse});jQuery Mobile changePage方向

回答

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 
}); 
+0

完美。谢谢Jasper – Apollo 2012-07-31 20:51:57

+0

docs man ...阅读你正在使用的框架的文档... – Jasper 2012-08-05 17:08:56

+0

这是伟大的建议。我马上开始!谢谢! – Apollo 2012-08-05 18:18:42