当前位置:网站首页>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 digitalization affects workflow automation
- 5. 数据访问 - EntityFramework集成
- Paper reading [semantic tag enlarged xlnv model for video captioning]
- “多模态”概念
- 三级菜单数据实现,实现嵌套三级菜单数据
- AI face editor makes Lena smile
- Mybaits multi table query (joint query, nested query)
- 成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
- 毕业之后才知道的——知网查重原理以及降重举例
- Flinksql read / write PgSQL
猜你喜欢

sql查询:将下一行减去上一行,并做相应的计算

Unity让摄像机一直跟随在玩家后上方

5. Data access - entityframework integration

English语法_名词 - 所有格

Lombok插件

消息队列:消息积压如何处理?

Message queuing: how to ensure that messages are not lost
![[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation](/img/f6/cd307c03ea723e1fb6a0011b37d3ef.png)
[reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation

Getting started with DES encryption

软件测试面试技巧
随机推荐
不同网段之间实现GDB远程调试功能
Message queue: how to handle repeated messages?
拼多多商品详情接口、拼多多商品基本信息、拼多多商品属性接口
Lombok插件
微信小程序蓝牙连接硬件设备并进行通讯,小程序蓝牙因距离异常断开自动重连,js实现crc校验位
Five core elements of architecture design
Différenciation et introduction des services groupés, distribués et microservices
消息队列:重复消息如何处理?
Distributed global ID generation scheme
Reading the paper [sensor enlarged egocentric video captioning with dynamic modal attention]
TCC of distributed transaction solutions
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
Mybaits之多表查询(联合查询、嵌套查询)
往图片添加椒盐噪声或高斯噪声
【日常训练--腾讯精选50】292. Nim 游戏
分布式事务解决方案之2PC
力扣102题:二叉树的层序遍历
An example of multi module collaboration based on NCF
Win configuration PM2 boot auto start node project
Codeforces Round #416 (Div. 2) D. Vladik and Favorite Game