当前位置:网站首页>Type de texte de commutation d'entrée et de mot de passe de l'applet natif
Type de texte de commutation d'entrée et de mot de passe de l'applet natif
2022-07-07 05:47:00 【Personne 0】
Table des matières
Applet natif De inputBasculer textAvecpasswordType
login.wxml
<input type="text" password="{
{ !isShowPwd }}" placeholder="Veuillez saisir le mot de passe" 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, // Afficher le mot de passe
phoneNum: '',
password: '',
},
// Basculer le format du mot de passe
changePwdType(){
if (this.data.isShowPwd) {
//Sithis.data.isShowPourtrue, Est représenté par un petit point noir du mot de passe
this.setData({
isShowPwd:false,
})
} else {
this.setData({
isShowPwd: true,
})
}
},
边栏推荐
- C#可空类型
- win配置pm2开机自启node项目
- Jhok-zbl1 leakage relay
- nVisual网络可视化
- Mapbox Chinese map address
- 数据中心为什么需要一套基础设施可视化管理系统
- 架构设计的五个核心要素
- Mybaits multi table query (joint query, nested query)
- Pytorch builds neural network to predict temperature
- Taobao commodity details page API interface, Taobao commodity list API interface, Taobao commodity sales API interface, Taobao app details API interface, Taobao details API interface
猜你喜欢
[binary tree] binary tree path finding
AI face editor makes Lena smile
Cve-2021-3156 vulnerability recurrence notes
集群、分布式、微服务的区别和介绍
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力
论文阅读【Semantic Tag Augmented XlanV Model for Video Captioning】
爬虫练习题(三)
C nullable type
5. 数据访问 - EntityFramework集成
Distributed global ID generation scheme
随机推荐
Jhok-zbl1 leakage relay
1. AVL tree: left-right rotation -bite
谈fpga和asic的区别
EMMC打印cqhci: timeout for tag 10提示分析与解决
"Multimodal" concept
JD commodity details page API interface, JD commodity sales API interface, JD commodity list API interface, JD app details API interface, JD details API interface, JD SKU information interface
Zero sequence aperture of leakage relay jolx-gs62 Φ one hundred
Go language context explanation
[PM products] what is cognitive load? How to adjust cognitive load reasonably?
make makefile cmake qmake都是什么,有什么区别?
【Shell】清理nohup.out文件
分布式事务解决方案之TCC
Differences and introduction of cluster, distributed and microservice
拼多多商品详情接口、拼多多商品基本信息、拼多多商品属性接口
Hcip seventh operation
sql查询:将下一行减去上一行,并做相应的计算
English grammar_ Noun possessive
Mapbox Chinese map address
Common skills and understanding of SQL optimization
What are the common message queues?