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

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -