baozhengrui

导航

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页

2024年7月19日 #

输入框进行换行

摘要: <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 芮艺 阅读(47) 评论(0) 推荐(0)

2024年7月17日 #

自动滚动到底部

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

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

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

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

posted @ 2024-07-17 16:10 芮艺 阅读(9) 评论(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 芮艺 阅读(12) 评论(0) 推荐(0)

2024年7月4日 #

让数组倒叙

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

posted @ 2024-07-04 10:06 芮艺 阅读(12) 评论(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 芮艺 阅读(745) 评论(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 芮艺 阅读(74) 评论(0) 推荐(0)

2024年6月27日 #

接口封装方法及超时处理

摘要: https://www.cnblogs.com/sumu80/p/18245408 1. 安装 Axios npm install axios 2. 创建请求模块 为了让请求在整个 Vue 项目中可复用,通常会在项目中创建一个专门的请求模块,用于配置和管理所有的 HTTP 请求。 a. 创建 htt 阅读全文

posted @ 2024-06-27 09:48 芮艺 阅读(47) 评论(0) 推荐(0)

导出

摘要: let params = this.writeParams // params.outline = this.$refs.outlineEditor.initForm.content // params.document = this.$refs.textEditor.initForm.conten 阅读全文

posted @ 2024-06-27 09:44 芮艺 阅读(46) 评论(0) 推荐(0)

富文本编辑器

摘要: 1.下载富文本插件 npm install @wangeditor/editor-for-vue --save --legacy-peer-deps 2.封装的组件editor1 <template> <div style="border: 1px solid #ccc" class="relati 阅读全文

posted @ 2024-06-27 08:58 芮艺 阅读(36) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页