简体   繁体   English

在Jquery Mobile中如何显示/隐藏HTML页面

[英]In Jquery Mobile How to show / hide an HTML page

I used this code to show / hide an div 我用这段代码显示/隐藏了一个div

$("[id*=viewMeButton]").click(function(){
     $("[id*=viewMe]").toggle();
     $("[id*=viewMeButton]").show(); 
});

like wise In Jquery Mobile it is possible to show / hide an HTML page. 在jQuery Mobile中,可以显示/隐藏HTML页面。

For example in LinkedIn app. 例如在LinkedIn应用程序中。

In the LinkedIn mobile app if we click the in icon means it shows / hide an page. 在LinkedIn移动应用中,如果我们单击in图标,则表示它显示/隐藏页面。 Like that i need. 那样我需要。

$.mobile.changePage()

change from one page to another 从一页切换到另一页

$.mobile.loadPage()

Load an external page, enhance its content, and insert it into the DOM. 加载外部页面,增强其内容,然后将其插入DOM。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM