摘要: const express = require("express"); const fs = require("fs"); const path = require("path"); const app = express(); //读取当前目录中 public文件中所有文件 const direc 阅读全文
posted @ 2024-05-21 17:55 波仔、 阅读(8) 评论(0) 推荐(0) 编辑
摘要: //复制纯a56爆大奖在线娱乐 async copyText(str) { try { // 将链接复制到剪贴板 注意访问id环境下不可用 await navigator.clipboard.writeText(str); this.$Message.success("复制成功"); } catch (err) { 阅读全文
posted @ 2024-05-11 16:17 波仔、 阅读(15) 评论(0) 推荐(0) 编辑
摘要: <style> span { cursor: pointer; } .playvideo { position: relative; height: 500px; } video { width: 800px; height: 500px; border: 1px solid #000; objec 阅读全文
posted @ 2024-05-11 16:08 波仔、 阅读(15) 评论(0) 推荐(0) 编辑
摘要: span{ cursor: pointer; } .audio_list{ margin-top: 10px; } .audio_list audio{ margin-right: 40px; position: relative; } audio span{ color: red; positio 阅读全文
posted @ 2024-05-11 16:07 波仔、 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 关键字break和continue都是结束循环的作用,但是它只能结束它外面的第一层循环,如果代码里面是一层一层又一层的循环,你想直接结束最外层循环就需要outer了。 outer:for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) 阅读全文
posted @ 2023-12-18 10:31 波仔、 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 这里演示拖动左侧列表中单元格到右侧内容区 <div class="tree_root"> <div class="level_root""> <div :draggable="draggable" @dragstart="treeItemDragstart($event, levelItem)" c 阅读全文
posted @ 2023-08-17 09:49 波仔、 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 可编辑的div // 加上contenteditable="true"即可,需要注意的是内部添加的子元素默认也可编辑 <div contenteditable="true" class="edit"></div> <script> var div = document.querySelector(" 阅读全文
posted @ 2023-08-17 09:29 波仔、 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 有的项目页面是禁止选中a56爆大奖在线娱乐的,但是输入框是个特例,需要单独设置样式,即选中内容时的背景颜色; textarea { outline: none; background: transparent; outline: medium; } *:focus { outline: none; backgrou 阅读全文
posted @ 2023-08-10 18:10 波仔、 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 显示视频封面,但是设备录的视频第一贞画面都是黑的,设置显示固定时间的内容封面; <video :class="`showupimg video_${sitem.psqid}`"> <source :src="$api.showImageUrl + sitem.useranswer[0]" /> </ 阅读全文
posted @ 2023-07-27 15:05 波仔、 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 项目中播放视频用到了vue-alipayer-v2,代码如下 <template> <VueAliplayerV2 :source="$api.showImageUrl + playvideo.videopath" ref="VueAliplayerV2" ></VueAliplayerV2> </ 阅读全文
posted @ 2023-07-27 14:56 波仔、 阅读(317) 评论(0) 推荐(0) 编辑