会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jiaoliankun
博客园
首页
新随笔
联系
订阅
管理
2024年5月21日
Echarts 图例后面增加内容 报错option is not defind
摘要: 效果 需添加以下代码即可,与 series 平级 formatter: function(name) { let data = option.series[0].data; let total = 0; let tarValue; for (let i = 0; i < data.length; i
阅读全文
posted @ 2024-05-21 09:51 焦廉琨
阅读(41)
评论(0)
推荐(0)
2024年5月7日
css多行文本控制行数溢出显示省略号
摘要: height: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; /* 控制显示的行数 */ overflow: hidden; text-overflow: ellipsis; 效果:
阅读全文
posted @ 2024-05-07 11:39 焦廉琨
阅读(17)
评论(0)
推荐(0)
2024年4月29日
uniapp中导航栏的返回按钮使用 autoBackButton:false不生效
摘要: uni-app H5 端修改 pages.json "autoBackButton": false 不生效pages.json 中配置 autoBackButton 是不生效的,因为这个属性只支持程序方面, H5 不支持这个属性的设置 解决方法: 在 mounted 这添加如下一句就好了,意思是在页
阅读全文
posted @ 2024-04-29 16:21 焦廉琨
阅读(841)
评论(0)
推荐(0)
2023年11月24日
前端使用连接 socket.io
摘要: //安装 npm install socket.io-client//引入 import { io } from "socket.io-client"; //页面链接 onMounted(() => { // 初始化 Socket.IO const socketio = io("http://192
阅读全文
posted @ 2023-11-24 09:59 焦廉琨
阅读(388)
评论(0)
推荐(0)
2023年11月22日
前端实现将数据生成文本文件下载
摘要: const targetObj = newTaskList.value.find(item => item.id id); if (targetObj) { const listData = targetObj.list; // 获取该对象的list数据 console.log(listData);
阅读全文
posted @ 2023-11-22 13:53 焦廉琨
阅读(117)
评论(0)
推荐(0)
2023年11月21日
vue3路由重定向失效
摘要: 页面刷新时遇到路由重定向无效的问题,可能是因为路由重定向是在客户端进行的,而页面刷新会重新加载整个应用程序,导致重定向逻辑丢失。 为了解决这个问题,你可以使用服务器端的重定向来确保在页面刷新时也能正确地重定向到指定的路由。以下是一种常见的解决方案: 在服务器端配置,确保所有请求都返回应用程序的入口页
阅读全文
posted @ 2023-11-21 09:59 焦廉琨
阅读(205)
评论(0)
推荐(0)
2023年11月15日
前端实现流式显示文本
摘要: <template> <div> <h1>{{ typedText }}</h1> </div> </template> <script setup> import { ref, onMounted } from 'vue'; const text = 'Hello, World!'; const
阅读全文
posted @ 2023-11-15 15:37 焦廉琨
阅读(464)
评论(0)
推荐(0)
textarea监视内部字数并限制字数
摘要: <div class="textBox"> <span class="span1">内容:</span> <textarea name="" id="" cols="30" rows="10" placeholder="请输入/粘贴文本" v-model="inputText" @input="ha
阅读全文
posted @ 2023-11-15 11:37 焦廉琨
阅读(58)
评论(0)
推荐(0)
2023年10月26日
去除微信小程序里面的button边框
摘要: 方法一:通过button::after button::after{ border: none;}方法二:给button按钮加上plain属性,属性值为true <button plain="true"></button>然后设置样式就可以去除边框了 button[plain]{ border:0
阅读全文
posted @ 2023-10-26 17:36 焦廉琨
阅读(1287)
评论(0)
推荐(0)
2023年10月12日
解决html css文本可以换行,英文与数字不换行
摘要: 添加 word-break: break-all;
阅读全文
posted @ 2023-10-12 09:29 焦廉琨
阅读(59)
评论(0)
推荐(0)
公告