10 2020 档案
摘要:1、用js获取伪元素属性 <style> .pie { width: 200px; height: 200px; background-color: aqua; } .pie::before { content: '我是你爸爸'; color: blue; background-color: red
阅读全文
摘要:排在上面优先级越高: . [] () 提取属性与调用函数 delete new typeof + - ! 一元运算符 * / % 乘法、除法、取余 + - 加法/连接、减法 >= <= > < 不等式运算符 ! 等式运算符 && 逻辑与 || 逻辑或 ?: 三元
阅读全文
摘要:如果需要使用滑块验证:vue登录时人机验证-滑块验证 随机验证码 效果图: 实现步骤: 1、封装Identity组件 <template> <div class="s-canvas"> <canvas id="s-canvas" :width="contentWidth" :height="cont
阅读全文
摘要:效果: 实现: 1、创建SliderCheck.vue组件 <template> <div class="slider-check-box"> <div class="slider-check" :class="rangeStatus ? 'success' : ''"> <i @mousedown
阅读全文