上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: 直接上代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>点子签名</title> 阅读全文
posted @ 2021-11-17 16:43 小泽沐优声 阅读(46) 评论(0) 推荐(0)
摘要: 引入 hls 和 jquery 代码片段 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <titl 阅读全文
posted @ 2021-11-11 16:53 小泽沐优声 阅读(921) 评论(0) 推荐(0)
摘要: 非常好用 设置和使用 :root { --color:red } .btn{ color:var(--color) } JS更换 document.documentElement.style.setProperty('--color', 'blue'); 阅读全文
posted @ 2021-10-09 11:49 小泽沐优声 阅读(48) 评论(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 小泽沐优声 阅读(306) 评论(0) 推荐(0)
摘要: 方便导入即可用 加密采用了 Base64 加密 优点:简单导入直接就可以用 缺点:开发时使用加密,会看不到加密前自己存的东西。就算是加上了target[key] = value;,页面刷新时也会变为空。 代码地址:https://gitee.com/sunliusen/sls-store 安装 ya 阅读全文
posted @ 2021-09-13 15:59 小泽沐优声 阅读(45) 评论(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 小泽沐优声 阅读(181) 评论(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 小泽沐优声 阅读(199) 评论(0) 推荐(0)
摘要: CV 代码片段 复制粘贴即可用 let data = "后端返回的数据" wx.getProvider({ service:"payment", success:res=>{ wx.requestPayment({ "timeStamp":data.timeStamp, //当前时间 "nonceS 阅读全文
posted @ 2021-08-11 09:41 小泽沐优声 阅读(88) 评论(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 小泽沐优声 阅读(99) 评论(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 小泽沐优声 阅读(31) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 14 下一页