会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
幽暗天琴
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
17
下一页
2024年7月15日
thinkPHP+swoole扩展搭建一个websocket连接聊天室(简易版)
摘要: 1.服务器搭建好宝塔面板,并开放用于连接websocket的端口:例如9502 2.本地准备好连接的文件,以thinkPHP举例: (1)根目录下的Websocket.php文件 (2)前端index入口文件添加test()方法,然后在view目录里添加相应的test.html test()方法:
阅读全文
posted @ 2024-07-15 18:37 幽暗天琴
阅读(990)
评论(0)
推荐(0)
2024年7月4日
niushop多商户商城新建一个H5目录,访问正常,刷新页面出现控制器不存在:app\controller\Pages
摘要: 问题描述:h5目录能正常使用,新建一个shop_h5目录,使用的时候没问题,刷新就报错 解决方法:在入口文件index.php操作重定向一下
阅读全文
posted @ 2024-07-04 18:56 幽暗天琴
阅读(106)
评论(0)
推荐(0)
2024年6月5日
npm run build 打包错误
摘要: 错误信息: Building for production... ERROR Failed to compile with 25 errors 19:03:12 error js/app.d3f0cc17.js from TerserError: error:0308010C:digital env
阅读全文
posted @ 2024-06-05 19:18 幽暗天琴
阅读(149)
评论(0)
推荐(0)
2024年3月29日
在 UniApp 中,要判断一个字符串str1(比如 "字符串1")是否存在于另一个由逗号分隔的字符串str2(比如 "字符串1,字符串2,字符串3")中,如果存在则删除该字符串,如果不存在,则添加到str2中
摘要: option_str(str2,str1){ //如果字符串已存在则移除,不存在则添加 let tem_arr = data.split(","); let index_arr = tem_arr.indexOf(str); if (index_arr !== -1) { // 如果找到了,则删除它
阅读全文
posted @ 2024-03-29 18:48 幽暗天琴
阅读(785)
评论(0)
推荐(0)
2024年3月12日
VUE3将时间戳转换为时间格式
摘要: formatDate(time) { const date = new Date(time*1000); const year = date.getFullYear(); const month = String(date.getMonth() + 1).padStart(2, '0'); // 月
阅读全文
posted @ 2024-03-12 14:58 幽暗天琴
阅读(1527)
评论(0)
推荐(0)
2024年2月2日
fastAdmin中手动添加列表的选项卡
摘要: 一、效果:点击选项卡筛选符合的数据 二:实现方法: 1.index.html里面写上列表: <div class="panel-heading"> {:build_heading()} <ul class="nav nav-tabs" data-field="type"> <li class="ac
阅读全文
posted @ 2024-02-02 17:53 幽暗天琴
阅读(755)
评论(0)
推荐(0)
2024年1月30日
uniapp调试时能正常获取位置,打包后位置获取异常
摘要: 需要高德地图key,SHA1是app证书的SHA1 uniapp配置文件将高德key填入即可打包程序
阅读全文
posted @ 2024-01-30 15:22 幽暗天琴
阅读(221)
评论(0)
推荐(0)
2024年1月22日
uniapp从地图上选择位置、获取当前位置、逆地址解析
摘要: 原文链接:https://blog.nanzhi.vip/?article_id=16&type=blog
阅读全文
posted @ 2024-01-22 17:11 幽暗天琴
阅读(3490)
评论(0)
推荐(0)
2024年1月2日
VUE3请求数据接口,将时间戳转换为时间案例
摘要: <template> <!-- ... 其他代码 ... --> <div class="w-full h-[250px] scroll_list text-[#fff] overflow-auto"> <div class="flex" v-for="(item, index) in state.
阅读全文
posted @ 2024-01-02 15:49 幽暗天琴
阅读(232)
评论(0)
推荐(0)
2023年12月27日
uniapp,微信小程序分享页面时的标题和内容
摘要: 在UniApp小程序中,分享时的标题通常是在分享内容中指定的。您可以在调用分享API时设置标题,具体取决于您使用的平台。 对于微信小程序,您可以使用wx.shareAppMessage方法来分享内容。在分享的数据中,可以设置title字段来指定分享的标题。例如: javascript复制代码 wx.
阅读全文
posted @ 2023-12-27 16:44 幽暗天琴
阅读(1086)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
17
下一页
公告