2012-03-25 58 views

回答

0

我認爲你是後:

$.mobile.changePage('#login', {transition: 'fade'}); 

或:

$.mobile.changePage($('#login'), {transition: 'fade'}); 

第一個參數是URL或jQuery的元素,第二個參數options是一個對象hashmap(你可以使用JSON表示法來放置很多選項)。

看到這個頁面的所有選項,在「實例」部分展示瞭如何在多個選項傳遞:

http://jquerymobile.com/test/docs/api/methods.html