Home  >  Article  >  WeChat Applet  >  WeChat applet: simple form, local storage

WeChat applet: simple form, local storage

高洛峰
高洛峰Original
2017-02-28 11:59:491889browse

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>
Statement:
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