上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: 非常好用 设置和使用 :root { --color:red } .btn{ color:var(--color) } JS更换 document.documentElement.style.setProperty('--color', 'blue'); 阅读全文
posted @ 2021-10-09 11:49 小泽沐优声 阅读(41) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>摄像头</title> <style 阅读全文
posted @ 2021-09-24 18:18 小泽沐优声 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 方便导入即可用 加密采用了 Base64 加密 优点:简单导入直接就可以用 缺点:开发时使用加密,会看不到加密前自己存的东西。就算是加上了target[key] = value;,页面刷新时也会变为空。 代码地址:https://gitee.com/sunliusen/sls-store 安装 ya 阅读全文
posted @ 2021-09-13 15:59 小泽沐优声 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 生成二维码 不限制链接长度 代码片段 var qrcode = new QRCode(COME_QR, { text: "https://www.cnblogs.com/ooo51o/", width: 330, height: 330, colorDark: "#000000", colorLig 阅读全文
posted @ 2021-08-17 16:18 小泽沐优声 阅读(163) 评论(0) 推荐(0) 编辑
摘要: CV /** * 设置cookie **/ function setCookie(name, value, day) { if(typeof day == 'number'){ let date = new Date(); date.setDate(date.getDate() + day); do 阅读全文
posted @ 2021-08-12 13:36 小泽沐优声 阅读(188) 评论(0) 推荐(0) 编辑
摘要: CV 代码片段 复制粘贴即可用 let data = "后端返回的数据" wx.getProvider({ service:"payment", success:res=>{ wx.requestPayment({ "timeStamp":data.timeStamp, //当前时间 "nonceS 阅读全文
posted @ 2021-08-11 09:41 小泽沐优声 阅读(69) 评论(0) 推荐(0) 编辑
摘要: #JS 几天后过期 function CheckInfoDate(infodate) { // infodate 格式 yyyy-mm-dd let today = new Date().getTime(); let theday = Date.parse(infodate.replace(/(\d 阅读全文
posted @ 2021-07-26 14:53 小泽沐优声 阅读(84) 评论(0) 推荐(0) 编辑
摘要: div,p,span { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Chrome/Safari/Opera */ -khtml-user-select: none; /* Konqueror 阅读全文
posted @ 2021-07-19 15:17 小泽沐优声 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 成品代码放在Github上了 前几天大佬发布的piter-vue5.8k,正好用在这个上面练练手。 附件必须是base64或链接,修改Attachments数组里的path改为data 字段 说明 path url data base64 字段说明 字段 说明 Host 你所用邮箱的smtp地址 U 阅读全文
posted @ 2021-07-19 15:11 小泽沐优声 阅读(204) 评论(8) 推荐(0) 编辑
摘要: 斜角 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <style 阅读全文
posted @ 2021-07-12 15:34 小泽沐优声 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页