当前位置:网站首页>Input of native applet switches between text and password types
Input of native applet switches between text and password types
2022-07-07 05:47:00 【Don't ask people 0】
Native applet And input Switch text And password type
login.wxml
<input type="text" password="{
{ !isShowPwd }}" placeholder=" Please input a password " value='{
{password}}' maxlength="11" class="phonePassword" placeholder-class="placeholderClass"></input>
<image class='input-img input-img2' bindtap='changePwdType' src="{
{isShowPwd ? '/static/login/viewPassword.png' : '/static/login/hidePassword.png'}}"></image>
login.js
data: {
isShowPwd:true, // Whether to display the password
phoneNum: '',
password: '',
},
// Switch password format
changePwdType(){
if (this.data.isShowPwd) {
// If this.data.isShow by true, It is expressed as password small black dot
this.setData({
isShowPwd:false,
})
} else {
this.setData({
isShowPwd: true,
})
}
},
边栏推荐
- 4. 对象映射 - Mapping.Mapster
- Mybaits之多表查询(联合查询、嵌套查询)
- Determine whether the file is a DICOM file
- 盘点国内有哪些EDA公司?
- Go language context explanation
- [论文阅读] A Multi-branch Hybrid Transformer Network for Corneal Endothelial Cell Segmentation
- ForkJoin最全详解(从原理设计到使用图解)
- sql优化常用技巧及理解
- 京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
- 【日常训练--腾讯精选50】292. Nim 游戏
猜你喜欢

WEB架构设计过程

SAP ABAP BDC(批量数据通信)-018

What are the common message queues?

5. 数据访问 - EntityFramework集成

Mapbox Chinese map address

An example of multi module collaboration based on NCF

Jhok-zbg2 leakage relay
![Paper reading [semantic tag enlarged xlnv model for video captioning]](/img/e3/633f6aac7a51ad7b3dc0e45dbe1f60.png)
Paper reading [semantic tag enlarged xlnv model for video captioning]

什么是消息队列?

SQL query: subtract the previous row from the next row and make corresponding calculations
随机推荐
分布式事务介绍
【日常训练--腾讯精选50】292. Nim 游戏
集群、分布式、微服务的区别和介绍
数字IC面试总结(大厂面试经验分享)
谈fpga和asic的区别
盘点国内有哪些EDA公司?
CVE-2021-3156 漏洞复现笔记
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
AI人脸编辑让Lena微笑
Leakage relay llj-100fs
English语法_名词 - 所有格
Hcip eighth operation
What is message queuing?
【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先
Educational Codeforces Round 22 B. The Golden Age
得物客服一站式工作台卡顿优化之路
Leetcode: maximum number of "balloons"
[论文阅读] Semi-supervised Left Atrium Segmentation with Mutual Consistency Training
Paper reading [open book video captioning with retrieve copy generate network]