Examples of small programs, super-loaded instances, and small program instances
Preface
Before you start developing the application number, take a look at the official "mini-programs" tutorial! (The following content is from the official "applet" Development Guide)
This document will take you step by step to create a small program, and you can experience the actual effect of the small program on your phone. The homepage of this applet displays the wel
Example of ticket query by applet, and example of Applet
Simple Example of a applet-train ticket query application, learning to master the applet framework and implementation of development steps. Small programs are lightweight and easy-to-use. They are easy to learn and use.
1. Related Links
Get the address of this project code
Github: https://github.com/VincentWYJ/WXAppTrain.git;
Blog file: http://files.cnblogs.com/files/tgyf/WXAppTrain.rar;
Learning materials for applet Development
Developer
MINA file structure, mina
File structure
The Framework Program contains an app describing the overall program and multiple pages describing the respective page.
A Framework Program consists of three objects, which must be placed in the project root directory, as follows:
File
Required
Function
App. js
Yes
Applet Logic
App. json
Yes
Mini-app public settings
App. wxss
No
Mini-Program (15th) checkbox component details, mini-program checkbox
The default checkbox style is a little ugly !!! The checkbox component is put into the checkbox-group as a multi-choice box, and set the listening event in the checkbox-group (only including the checkbox.
Checkbox-group listening method:
Multiple checkbox attributes:
Wxml
Js
Page ({/*** initialization data */data: {items: [{name: 'jav
Detailed explanation of mini-program video components and instance code, mini-program video
There is no difference between the video playback component and the image loading component.
Important attributes:
Wxml
Js
Page ({data: {// text: "This is a Page" hiddenVideo: true},/*** listens to the video loading error status */listenerVideo: function (e) {console. log (e. detail. errMsg) ;},/*** listen to the
The mini-program implements the verification code to get the countdown effect, and the mini-Program Verification Code
The example in this article shares with you the code for implementing the countdown effect of the verification code of the applet for your reference. The specific content is as follows:
Wxml
Js
Var interval = null // countdown function Page ({data: {date: 'Please select date', fun_id
Countdown to sending text messages and countdown to mini apps
After clicking
Code
Train of Thought: Set the style and content after the BUTTON as a variable, and click setData to change it.
Summary
The above section describes the SMS countdown function of the mini-app. I hope it will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very muc
How does the ipad mini force the shutdown? I believe that the ipad mini forced shutdown There are a lot of old fruit powder is known, but for the new fruit powder is really not know how to shut down, because of the crash we press any key no response oh, I would like to introduce you, Hope to be helpful to everyone.
First, in the Ipadmini in the same time we pressed the home button and the dormant button 8-
Experience Report: differences between Android and Apple mini apps
Many may ask: What is the difference between a Applet and a web page browsing in it?
First, the small program runs in full screen mode, and the interface is similar to accessing an APP. It is more immersed than accessing h5. Secondly, Its browsing experience is more stable.
However, this is not enough unless ...... After entering the applet, he will not interrupt the chat. after ent
that the 200 places are selected by Xiao Long)Project name: Enter the project name as required. It does not matter because deployment is not involved.Project Directory: select the cloned folderClick Add Project
Happy New Year and fortune
You can select encoding in Web openers (or your favorite editor)
1. Click the restart button in the lower left corner to refresh the preview After encoding.
2. Bash users can execute the following command in the project directory to quickly create the files
that listens to an event and accepts a CALLBACK function as a parameter. When an event is triggered, the CALLBACK function is called.
Unless otherwise specified, all other API interfaces accept an object as a parameter.
The OBJECT can specify success, fail, and complete to accept the interface call results.OBJECT ParametersFor specific API calls, see the mini-program API documentation.Because I do not have an internal test number during the
Detailed description of the applet time formatting (util. formatTime (new Date), and the applet util. js
Small Program time formatting
Although the mini-program is still in beta testing, it is not enough. Hurry up and record the learning path.
Obtain the time by using Date. now () to obtain a string of numbers. For example:
Use util. formatTime (new Date) to obtain the formatted time)
Util is a tool provided in the official demo:
Function form
Detailed description on how the applet obtains photo album photos.
The applet obtains the photo album
Today, I met with the user profile picture setting function of the mini program and took notes.
First upload gif:
Run the following code:
Small demo, the code is very simple.
1. index. wxml
2. index. js
// Index. js // obtain the application instance var app = getApp () Page ({data: {tempFilePaths: ''}, onLoad: function () {}, chooseimage: function
1, we open the ipad mini Apple App Store to search for micro-letters
2. In the Open Apple Store we found "search" as shown in the figure.
3, in the search box "micro-letter" Click Search you will find no micro-letter.
4, now we can not find the micro-letter in the ipad, then only download the iphone version, I click on the "iphone only"
5, then you will find a micro-letter software, and now we click on the free installation can be installe
Mini run game based on MFC design (game development, MFC explaining, threading and process communication)Course Lecturer: The Wind is tonightCourse Category: Game developmentSuitable for people: BeginnerNumber of lessons: 36 HoursUpdate level: CompleteType of Service: Class C (General Service class course)Using the technology: MFCRelated items: Mini run gameFor you to share a set of courses, interested can
Mini run game based on MFC design (game development, MFC explaining, threading and process communication)Course Category: Game developmentSuitable for people: BeginnerNumber of lessons: 36 HoursUse of technology: MFC involves the project: Mini run gameConsulting qq:1840215592First, Module introduction1, MFC Basic article: mainly on the C + + of some technical difficulties and focusContainer and algorithm ex
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.