上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 44 下一页
摘要: 1.两批数据,需要对应其统计数据 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> 阅读全文
posted @ 2021-01-20 01:21 糖~豆豆 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 据我所测试,目前最好用的代码是: 方案一 let arr = value.split(/[,,\s\n]/).filter(_ => _) 方案二 let arr = value.replace(/[,,\s]+/gmi, ',').split(',').filter(_ => _) 大家如果有更好 阅读全文
posted @ 2021-01-16 19:09 糖~豆豆 阅读(1805) 评论(0) 推荐(0) 编辑
摘要: 1.hover时候出现,总体来说只改了一下两个index.vue,还有route文件 src\layoutTwo\index.vue <template> <div class="main_container_webgl"> <!-- <div :class="classObj" class="ap 阅读全文
posted @ 2021-01-07 23:42 糖~豆豆 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 1.重置其样式,去掉外框以及滚动条等 <iframe id="myIframe" ref="iframe_a" :src="mySrc" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheig 阅读全文
posted @ 2021-01-06 00:18 糖~豆豆 阅读(6705) 评论(2) 推荐(0) 编辑
摘要: 使用动态组件报错 Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. <templa 阅读全文
posted @ 2021-01-05 22:38 糖~豆豆 阅读(2136) 评论(1) 推荐(0) 编辑
摘要: 单vue文件引入老是报错,所以我用了全局引入 1.先在assets里新建font文件夹,把字体放进去,然后在字体旁边新建font.less, font.less内容如下: @font-face{ font-family: 'aaabbb'; src: url('./aaa-bbb.otf'); fo 阅读全文
posted @ 2021-01-04 23:15 糖~豆豆 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 一:直接上传文件,放入body里 1.前端代码 <input type="file" onchange="sendFiles(this.files)"> <script> function sendFiles(files) { const reader = new FileReader(); con 阅读全文
posted @ 2020-10-23 01:18 糖~豆豆 阅读(6705) 评论(0) 推荐(0) 编辑
摘要: 一:下面是一个简单的案例,回车发送消息,多人在线聊天 1.前端代码 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>WebSocket Chat</title> </head> <body> <script type="text 阅读全文
posted @ 2020-10-23 01:17 糖~豆豆 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 1.在函数中先设置input文件可以多选,然后再设置input框的点击事件情况下,有时候这个多选设置会失效. 我们可以采用下面的方式去解决 <input ref="myInputRef" type="file" class="my_input" :multiple="myMultiple" styl 阅读全文
posted @ 2020-10-22 01:07 糖~豆豆 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: 1.TXT类型文件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title 阅读全文
posted @ 2020-10-22 00:24 糖~豆豆 阅读(8707) 评论(2) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 44 下一页
Live2D