Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create Communication Community APP with HBuilder by Python

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how Python uses HBuilder to create a communication community APP. I hope you will get something after reading this article. Let's discuss it together.

1. Problem description

Use HBuilder to make a simple community browsing interface.

2. Solution

This is some experience about this software that I want to do after learning HBuilder. With this contact, I would like to share some usage that can be used by beginners, so that more beginners can be familiar with HBuilder earlier and can skillfully use it to make an interface they want. First of all, for the installation of HBuilder, create a new mobile APP package after installation, create a HTML file inside, select the HTML of the letter mui, and then because it is a community, there must be a head and a tail, here, there is a head,body composition, the head is attached to the head area code, the bottom code is attached in the body, there is a most basic page. Then join the community sharing section, we can add the header and footer, the header can be "img src" to insert the picture using "class" and "style" to format; use "button" to insert the jump button I want in the footer, and you can also use "class" and "style" to adjust the format.

Corresponding code:

Mui.init (); mui.plusReady (function () {var subPages = ['home.html',' shopping.html', 'community.html',' personal.html']; var subPageStyle = {top: "20px", bottom: "50px"} var mainViwe = plus.webview.currentWebview (); for (var I = 0; I)

< subPages.length(); i++) {var url = subPages[i];var subViwe = plus.webview.create(url, url, subPageStyle);subViwe.hide();mainViwe.append(subViwe);}plus.webview.show(subPages[0]);}) 社区

Small M

Published at 15:30 on 2016-06-30

Like comments browse more home page community shopping I have finished reading this article, I believe you have a certain understanding of "how Python uses HBuilder to create a communication community APP". If you want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report