当前位置:网站首页>Input of native applet switches between text and password types
Input of native applet switches between text and password types
2022-07-07 05:47:00 【Don't ask people 0】
Native applet And input Switch text And password type
login.wxml
<input type="text" password="{
{ !isShowPwd }}" placeholder=" Please input a password " 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, // Whether to display the password
phoneNum: '',
password: '',
},
// Switch password format
changePwdType(){
if (this.data.isShowPwd) {
// If this.data.isShow by true, It is expressed as password small black dot
this.setData({
isShowPwd:false,
})
} else {
this.setData({
isShowPwd: true,
})
}
},
边栏推荐
猜你喜欢

C#可空类型

Leakage relay jd1-100
![Reading the paper [sensor enlarged egocentric video captioning with dynamic modal attention]](/img/db/feb719e2715c7b9c669957995e1d83.png)
Reading the paper [sensor enlarged egocentric video captioning with dynamic modal attention]

Introduction to distributed transactions

什么是依赖注入(DI)

ForkJoin最全详解(从原理设计到使用图解)

sql查询:将下一行减去上一行,并做相应的计算
![[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?

The navigation bar changes colors according to the route

JSP setting header information export to excel
随机推荐
Distributed global ID generation scheme
架构设计的五个核心要素
TCC of distributed transaction solutions
[PM products] what is cognitive load? How to adjust cognitive load reasonably?
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
How does mapbox switch markup languages?
The 2022 China low / no code Market Research and model selection evaluation report was released
Sidecar mode
nVisual网络可视化
毕业之后才知道的——知网查重原理以及降重举例
win配置pm2开机自启node项目
[论文阅读] Semi-supervised Left Atrium Segmentation with Mutual Consistency Training
Introduction to distributed transactions
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]
常用消息队列有哪些?
SAP webservice 测试出现404 Not found Service cannot be reached
什么是消息队列?
【日常训练--腾讯精选50】292. Nim 游戏
R语言【逻辑控制】【数学运算】
SAP ABAP BDC(批量数据通信)-018