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