当前位置:网站首页>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,
})
}
},
边栏推荐
- Unity keeps the camera behind and above the player
- 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
- Unity让摄像机一直跟随在玩家后上方
- pytorch_ 01 automatic derivation mechanism
- nodejs获取客户端ip
- 1. AVL tree: left-right rotation -bite
- How does mapbox switch markup languages?
- The navigation bar changes colors according to the route
- zabbix_get测试数据库失败
- [binary tree] binary tree path finding
猜你喜欢

Web architecture design process

数字IC面试总结(大厂面试经验分享)

消息队列:如何确保消息不会丢失
![Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]](/img/9c/1f031400f0e201df47bd51547ff73f.png)
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]

Zero sequence aperture of leakage relay jolx-gs62 Φ one hundred

The year of the tiger is coming. Come and make a wish. I heard that the wish will come true

Message queue: how to deal with message backlog?

爬虫练习题(三)
![[PM products] what is cognitive load? How to adjust cognitive load reasonably?](/img/75/2277e0c413be561ec963b44679eb75.jpg)
[PM products] what is cognitive load? How to adjust cognitive load reasonably?

Mapbox Chinese map address
随机推荐
High voltage leakage relay bld-20
纪念下,我从CSDN搬家到博客园啦!
Flinksql read / write PgSQL
Dynamic memory management
Go 語言的 Context 詳解
关于服装ERP,你知道多少?
Leakage relay jelr-250fg
Pinduoduo product details interface, pinduoduo product basic information, pinduoduo product attribute interface
Pytorch builds neural network to predict temperature
Dj-zbs2 leakage relay
How does mapbox switch markup languages?
Introduction to distributed transactions
数据中心为什么需要一套基础设施可视化管理系统
Determine whether the file is a DICOM file
English grammar_ Noun possessive
《2022中国低/无代码市场研究及选型评估报告》发布
How digitalization affects workflow automation
Preliminary practice of niuke.com (9)
Distributed global ID generation scheme
Taobao store release API interface (New), Taobao oauth2.0 store commodity API interface, Taobao commodity release API interface, Taobao commodity launch API interface, a complete set of launch store i