baozhengrui

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页

2024年7月24日 #

取随机值

摘要: function getRandomArbitrary(min, max) { return Math.random() * (max - min) + min; } function getRandomInt(min, max) { min = Math.ceil(min); max = Math 阅读全文

posted @ 2024-07-24 11:02 芮艺 阅读(2) 评论(0) 推荐(0) 编辑

2024年7月19日 #

form表单里的输入框选中然后进行回车进行出发函数

摘要: <form @submit.pervent='fff'><input></input> </form> 阅读全文

posted @ 2024-07-19 18:36 芮艺 阅读(1) 评论(0) 推荐(0) 编辑

列数据为空时显示

摘要: // el-table 列数据为空时显示 .tableClass :empty::before { content: '-'; } 阅读全文

posted @ 2024-07-19 18:35 芮艺 阅读(1) 评论(0) 推荐(0) 编辑

输入框进行换行

摘要: <textarea id="input-id" v-model="textarea" class="sport_transparent-input" :rows="2" placeholder="请输入内容,Shift+Enter换行" @keydown="handleKeydown"></text 阅读全文

posted @ 2024-07-19 18:25 芮艺 阅读(3) 评论(0) 推荐(0) 编辑

2024年7月17日 #

自动滚动到底部

摘要: char = document.get...Id('ccccc') chat.scrollTop = chat.scrollHeight; 阅读全文

posted @ 2024-07-17 16:11 芮艺 阅读(2) 评论(0) 推荐(0) 编辑

动态添加新页面在固定的div中

摘要: var SportAgentTotalTrainComponent = Vue.extend(sportAgentTotalTrain页面); var sportAgentTotalTrainInstance = new SportAgentTotalTrainComponent({ propsDa 阅读全文

posted @ 2024-07-17 16:10 芮艺 阅读(1) 评论(0) 推荐(0) 编辑

逐字显示文字

摘要: for (let i = 0; i <= res.data.data.length; i++) { setTimeout(() => { this.report = res.data.data.slice(0, i); }, 10); } 如果换行不显示则在此div的css中加入white-spac 阅读全文

posted @ 2024-07-17 16:09 芮艺 阅读(3) 评论(0) 推荐(0) 编辑

2024年7月4日 #

让数组倒叙

摘要: 1.使用reverse()函数 var array=['我','喜','欢','你']; array.reverse(); // 输出: ["你", "欢", "喜", "我"] 2.循环遍历一一使其倒序 var array=['我','喜','欢','你']; var temp; for(let 阅读全文

posted @ 2024-07-04 10:06 芮艺 阅读(3) 评论(0) 推荐(0) 编辑

2024年7月2日 #

vue+科大讯飞语音听写功能

摘要: 1.查看node版本,本人如下:node 16 本人项目目录,主要用到的画红色圈圈的三个文件 2.添加 package.json 文件版本 "dependencies": { enc": "^0.4.0", "jquery": "^3.4.1", }, "devDependencies": { "c 阅读全文

posted @ 2024-07-02 09:03 芮艺 阅读(55) 评论(0) 推荐(0) 编辑

图片连接转 base64 并在页面中如何显示

摘要: 图片链接改base64 // result.content图片链接 fetch("/navy" + result.content) .then(response => response.blob()) .then(blob => { // 将Blob对象转换为Base64字符串 const read 阅读全文

posted @ 2024-07-02 08:42 芮艺 阅读(4) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页