码迷,mamicode.com
首页 > 其他好文 > 详细

显示WiFi密码小案例

时间:2019-12-12 14:57:07      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:pwd   pass   vue   charset   NPU   data   mes   type   wifi   

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="js/vue.js"></script>
</head>
<body>

<div id="app">
<input :type="type"><button @click="pwd">{{message}}</button>
</div>


<script>
var vm = new Vue({
el:"#app",
data:{
type: "password",
message:"显示密码",
},
methods:{
pwd(){
if(this.type==="password") {
this.type = "text";
this.message="隐藏密码";
}else{
this.type="password";
this.message="显示密码";
}
}
}
});

</script>
</body>
</html>

显示WiFi密码小案例

标签:pwd   pass   vue   charset   NPU   data   mes   type   wifi   

原文地址:https://www.cnblogs.com/eliwen/p/12028916.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!