javascript - Change defaultPageTransition in jquery mobile 1.4.1? -
Is
I want to know how to change jquery mobile slide the default page changes?
I tried
$ ("div [data-role = page]"). Bind ( "Pagebeforeshow", function (e, data) {console.log ( "the first page of ++++++++++ ++++++++++++++++ show") ; $ .mobile.silentScroll (0); $ .mobile.changePage.defaults.transition = 'Slide';}); and
$ (document) .on ( "mobileinit", function () {// Apply overrides $ here ( "div [data-role = Page] "). Page Container (" Change ", {Infection:" Slide "}}}); But the two do not work
Like this:
$ (document) .on ( "mobileinit", function () {$ .extend ($ .mobile, {defaultPageTransition: 'slide'});});
Comments
Post a Comment