![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
es5
先不要想收获,扎实
你的孤独,虽败犹荣
展开
-
mutils(utils) 配置文件 【缓存,时间,保留数字,判空……】
mutils 配置文件 【缓存,时间,保留数字,判空……】原创 2022-08-17 11:10:57 · 226 阅读 · 0 评论 -
初始(Javascript/Typescript) --ts/js 实例方法与静态方法
实例方法 与 静态方法js// 实例方法function Person(){ this.name = '张飞' run(){ return `${this.name}在救关羽` }}// 静态方法Person.work = function(){ //静态方法直接调用 return `${this.name}在保护刘备`}let A1 = new Person() //实例方法需要new一下tsclass Person{原创 2022-01-12 10:30:54 · 250 阅读 · 0 评论 -
初识(Javascript) -- js //继承
对象冒充实现继承function Person(){ this.name = '张三' ; this.age = 18 this.run = () =>{ alert(`我叫 ${this.name} `) }}Person.prototype.sex = '男'Person.prototype.work = ()=>{console.log('我在工作')}function PersonTo (){ Person.c原创 2022-01-11 16:17:04 · 136 阅读 · 0 评论 -
短信验证码倒计时(获取短信是后端返回验证码)
需求:点击获取验证码按钮后开始计时,秒数为0结束<view class="cu-form-group margin-top shadow-warp" :class="[shape=='round'?'round':'']"> <view class="title"><text class="cuIcon-lock margin-right-xs"></text>验证码:</view> <input class="uni-input" p原创 2021-12-24 10:11:21 · 281 阅读 · 0 评论 -
键盘点击事件 vue iview ui
KeyDown:按键下去触发事件KeyPress:按键不松持续事件 用来捕获数字(注意:包括Shift+数字的符号)、字母(注意:包括大小写)、小键盘等除了F1-12、 SHIFT、Alt、Ctrl、Insert、Home、PgUp、Delete、End、PgDn、ScrollLock、Pause、NumLock、{菜单键}、{开始键}和方向键外的ANSI字符KeyUp: 松开键盘事件<textarea v-model="messageContent" class="te原创 2021-11-30 09:37:50 · 291 阅读 · 0 评论