当前位置:网站首页>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,
})
}
},
边栏推荐
- 得物客服一站式工作台卡顿优化之路
- How does mapbox switch markup languages?
- Hcip seventh operation
- 论文阅读【Semantic Tag Augmented XlanV Model for Video Captioning】
- WEB架构设计过程
- Egr-20uscm ground fault relay
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- 拼多多新店如何获取免费流量,需要从哪些环节去优化,才能有效提升店内免费流量
- C nullable type
- Educational Codeforces Round 22 B. The Golden Age
猜你喜欢
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
三级菜单数据实现,实现嵌套三级菜单数据
[论文阅读] A Multi-branch Hybrid Transformer Network for Corneal Endothelial Cell Segmentation
消息队列:消息积压如何处理?
ForkJoin最全详解(从原理设计到使用图解)
CVE-2021-3156 漏洞复现笔记
Cve-2021-3156 vulnerability recurrence notes
Pinduoduo product details interface, pinduoduo product basic information, pinduoduo product attribute interface
集群、分布式、微服务的区别和介绍
sql查询:将下一行减去上一行,并做相应的计算
随机推荐
bat 批示处理详解
Realize GDB remote debugging function between different network segments
4. Object mapping Mapster
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
Simple case of SSM framework
How does mapbox switch markup languages?
不同网段之间实现GDB远程调试功能
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力
Differences and introduction of cluster, distributed and microservice
【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先
淘寶商品詳情頁API接口、淘寶商品列錶API接口,淘寶商品銷量API接口,淘寶APP詳情API接口,淘寶詳情API接口
【Shell】清理nohup.out文件
Distributed global ID generation scheme
Hcip seventh operation
Unity让摄像机一直跟随在玩家后上方
Paper reading [semantic tag enlarged xlnv model for video captioning]
Lombok plug-in
《ClickHouse原理解析与应用实践》读书笔记(6)
win配置pm2开机自启node项目
分布式事务解决方案之TCC