摘要: <input type="tel" style="-webkit-text-security:disc"> 阅读全文
posted @ 2022-11-01 14:28 前端渣的日常记录 阅读(31) 评论(0) 推荐(0) 编辑
摘要: RSA公开密钥密码体制是一种使用不同的加密密钥与解密密钥,“由已知加密密钥推导出解密密钥在计算上是不可行的”密码体制 。 在公开密钥密码体制中,加密密钥(即公开密钥)PK是公开信息,而解密密钥(即秘密密钥)SK是需要保密的。加密算法E和解密算法D也都是公开的。虽然解密密钥SK是由公开密钥PK决定的, 阅读全文
posted @ 2022-10-29 10:32 前端渣的日常记录 阅读(2630) 评论(0) 推荐(0) 编辑
摘要: 主要是通过ref <input type="text" class="content" v-model="content" ref="content"/> <span @click="handleClick">使input获得焦点</span> handleClick(label){ this.$r 阅读全文
posted @ 2021-07-03 15:58 前端渣的日常记录 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: <input type="file" name="file" id="file" accept="image/png, image/jpeg, image/gif, image/jpg" @change="imgChange(this)" class="fileInput"/> 在图片每次ImgCh 阅读全文
posted @ 2021-07-03 15:52 前端渣的日常记录 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 依赖的库:qrcode.vue (3.2.2) <qrcode-vue :value="qrCodeUrl" :size="size" level="H" /> import QrcodeVue from 'qrcode.vue' export default { name: '', compone 阅读全文
posted @ 2021-07-03 15:49 前端渣的日常记录 阅读(2991) 评论(0) 推荐(0) 编辑
摘要: .scroll-wrapper { width: 100%; /* height: calc(100% - 43px); */ -webkit-overflow-scrolling: touch; overflow-y: scroll; } .scroll-wrapper iframe { heig 阅读全文
posted @ 2021-06-16 10:18 前端渣的日常记录 阅读(314) 评论(0) 推荐(0) 编辑
摘要: var foo = function(x,y){ return x-y } function foo(x,y){ return x+y } var num = foo(1,2) console.log(num) 结果:-1 js解析规则: 函数声明和变量声明都会被提升。函数会首先被提升,然后才是变量 阅读全文
posted @ 2021-01-13 23:25 前端渣的日常记录 阅读(183) 评论(0) 推荐(0) 编辑
摘要: async函数其实是Geneator函数的语法糖。 1.async函数的返回值是Promise对象,可以用then方法指定下一步的操作。async函数可以看做多个异步操作,包装成一个Promise对象,await命令就是内部then命令的语法糖。 2.async函数返回一个Promise对象,可以使 阅读全文
posted @ 2020-12-24 13:15 前端渣的日常记录 阅读(11130) 评论(0) 推荐(0) 编辑
摘要: 最近我司改版小程序主页,个性化了tabbar栏,功能如下: 1、默认首页显示大图标,滚动到一定位置,显示gotop图标,点击可返回顶部(滑动到顶部也可还原图标),还原图标 2、其他tabbar页类似 在此简单做个记录 1、需在app.json tarBar对象内开启自定义开关: "tabBar": 阅读全文
posted @ 2020-12-22 22:45 前端渣的日常记录 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 1、从官网下载nodejs包安装 2、安装淘宝镜像 npm config set registry https://registry.npm.taobao.org 3、安装nrm npm install -g nrm 安装过程中报错了: 可尝试执行如下命令,两者均返回null后再次尝试安装nrm成功 阅读全文
posted @ 2020-12-11 16:52 前端渣的日常记录 阅读(490) 评论(0) 推荐(0) 编辑