2022年11月11日
摘要:
检测数据是不是除了symbol外的原始数据 function isStatic(value) { return ( typeof value 'string' || typeof value 'number' || typeof value 'boolean' || typeof value 'un
阅读全文
posted @ 2022-11-11 17:29
夜攸
阅读(47)
推荐(0)
2022年1月4日
摘要:
原文链接:https://www.cnblogs.com/zr123/p/12206031.html
阅读全文
posted @ 2022-01-04 18:50
夜攸
阅读(220)
推荐(0)
2021年12月15日
摘要:
1.插槽作用:父向子传递一段Html代码块 2.分类: (1)默认插槽:规则:父给子传,用父,不传,用子。 (2)具名插槽:适用于一个页面有多个插槽时,需要做区分,使用name属性。给插槽取个名字 (3)作用域插槽:使用子组件的数据,传到父,在父改变此值,会改变子得数据。(也可使用name属性) 默
阅读全文
posted @ 2021-12-15 10:49
夜攸
阅读(100)
推荐(0)
2021年12月14日
摘要:
tsconfig.json文件配置
阅读全文
posted @ 2021-12-14 10:33
夜攸
阅读(297)
推荐(0)
2021年11月17日
摘要:
// 获取屏幕可用高度 var winHeight = $(window).height(); // 监听窗口变化 $(window).resize(function () { // 获取当前屏幕可用高度 var thisHeight = $(this).height(); if (winHeigh
阅读全文
posted @ 2021-11-17 11:17
夜攸
阅读(123)
推荐(0)
2021年11月8日
摘要:
html <div id="app"></div> css .back_span { position: absolute; transform: translate(-50%, -50%); background-color: rgb(255, 254, 254); border-radius:
阅读全文
posted @ 2021-11-08 10:22
夜攸
阅读(52)
推荐(0)
2021年11月1日
摘要:
// type1 await getFile(fileUrl).then((res) => { console.log('download',res); let bFile = window.URL.createObjectURL( new Blob([res]) ) this.download(b
阅读全文
posted @ 2021-11-01 13:39
夜攸
阅读(837)
推荐(0)
2021年10月25日
摘要:
js设置转发开关 document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() { WeixinJSBridge.call('hideOptionMenu'); });
阅读全文
posted @ 2021-10-25 11:30
夜攸
阅读(316)
推荐(0)
摘要:
设置图片高度等于宽度 .img-box{ width:100%; height:0; position: relative; padding-bottom: 100% } .img-box img{ width:100%; height:100%; position: absolute; } 如果仅
阅读全文
posted @ 2021-10-25 10:47
夜攸
阅读(1889)
推荐(0)
2021年10月20日
摘要:
// 读取文件结果 afterRead(files) { let that = this; let file = files.file; if (file undefined) { return; } if (file.size / 1024 > 1025) { // 文件大于1M(根据需求更改),
阅读全文
posted @ 2021-10-20 09:00
夜攸
阅读(1148)
推荐(0)