当前位置:网站首页>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,
})
}
},
边栏推荐
- 消息队列:消息积压如何处理?
- 论文阅读【Semantic Tag Augmented XlanV Model for Video Captioning】
- 4. 对象映射 - Mapping.Mapster
- 拼多多新店如何获取免费流量,需要从哪些环节去优化,才能有效提升店内免费流量
- 基于NCF的多模块协同实例
- SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server
- 集群、分布式、微服務的區別和介紹
- make makefile cmake qmake都是什么,有什么区别?
- [reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation
- Leakage relay llj-100fs
猜你喜欢
English grammar_ Noun possessive
Egr-20uscm ground fault relay
Harmonyos practice - Introduction to development, analysis of atomized services
How does mapbox switch markup languages?
如何提高网站权重
论文阅读【Open-book Video Captioning with Retrieve-Copy-Generate Network】
架构设计的五个核心要素
Message queue: how to deal with message backlog?
基于NCF的多模块协同实例
Jhok-zbg2 leakage relay
随机推荐
Getting started with DES encryption
Wechat applet Bluetooth connects hardware devices and communicates. Applet Bluetooth automatically reconnects due to abnormal distance. JS realizes CRC check bit
What are the common message queues?
2pc of distributed transaction solution
软件测试面试技巧
The year of the tiger is coming. Come and make a wish. I heard that the wish will come true
nVisual网络可视化
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]
成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
Tablayout modification of customized tab title does not take effect
pytorch_ 01 automatic derivation mechanism
The navigation bar changes colors according to the route
ForkJoin最全详解(从原理设计到使用图解)
Go 語言的 Context 詳解
Message queue: how to handle repeated messages?
Jhok-zbl1 leakage relay
消息队列:消息积压如何处理?
[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation
论文阅读【Sensor-Augmented Egocentric-Video Captioning with Dynamic Modal Attention】
OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力