摘要: 1 // 参数dom为html dom节点 2 // 参数key为需模糊查询的名称字段 3 function queryClassNode(dom, key) { 4 let collectArray = []; 5 for (let i = 0; i < dom.childNodes.length 阅读全文
posted @ 2024-01-22 11:16 PromiseOne 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1 <template> 2 <div 3 v-bind="$attrs" 4 v-on="$listeners" 5 > 6 <template v-for="(index, name) in $slots" v-slot:[name]> 7 <slot :name="name"/> 8 </te 阅读全文
posted @ 2024-01-14 16:33 PromiseOne 阅读(121) 评论(0) 推荐(0) 编辑
摘要: <template> <!-- html模板 --> <div class="a-class"> <div class="b-class"> <div class="c-class">vue页面书写规范</div> </div> </div> </template> <script> /* 模块系统 阅读全文
posted @ 2023-09-05 10:14 PromiseOne 阅读(44) 评论(0) 推荐(0) 编辑
摘要: .line { width: 100%; background: repeating-linear-gradient( -45deg, rgba(0, 41, 136, 0.4) 0px 24px, #fff 24px 48px, rgba(238, 0, 7, 0.4) 48px 72px, #f 阅读全文
posted @ 2023-08-30 15:45 PromiseOne 阅读(29) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>切片上传</title> </head> <body> <script src="https://cdn.bootcdn.net/ajax/libs/spark 阅读全文
posted @ 2023-05-29 11:41 PromiseOne 阅读(25) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2023-02-24 16:20 PromiseOne 阅读(60) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/m0_61073617/article/details/124430213 阅读全文
posted @ 2023-02-06 10:48 PromiseOne 阅读(254) 评论(0) 推荐(0) 编辑
摘要: let checkImgExists = function(url) { return new Promise(function(resolve, reject) { let ImgObj = new Image(); ImgObj.src = url; ImgObj.onload = functi 阅读全文
posted @ 2023-01-30 14:59 PromiseOne 阅读(653) 评论(0) 推荐(0) 编辑
摘要: https://zh-hans.reactjs.org/warnings/unknown-prop.html 阅读全文
posted @ 2023-01-05 10:27 PromiseOne 阅读(127) 评论(0) 推荐(0) 编辑
摘要: export function numberToColor(text, color = '#635BFF', size = '12px') { let reg = /(\d+)/g; return text.replace(reg, `<span style="color: ${color};siz 阅读全文
posted @ 2022-12-20 14:48 PromiseOne 阅读(53) 评论(0) 推荐(0) 编辑