WeChat applet: simple form, local storage

高洛峰
Release: 2017-02-28 11:59:49
Original
1872 people have browsed it

Example content

Login interface

Processing login form data

Processing login form data (asynchronous)

Clear local data

Example 1: Login interface

Add the login page pages/login/login to app.json and set it as the entrance.

微信小程序: 简易form、本地存储

After saving, the relevant files will be automatically generated (very convenient).

微信小程序: 简易form、本地存储

Modify the view file login.wxml

Name: text> view> < text>Password: text> view>
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!