摘要: 1.安装redis应用,安装redis扩展, 2.重启PHP,开启端口如6379,然后在config.php配置cache信息 3.实际运行案例: 阅读全文
posted @ 2024-07-23 11:33 幽暗天琴 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1.安装memcached扩展: 2.重启PHP,在thinkPHP或者fastAdmin启用扩展(开放相应端口:例如11211) 在fastAdmin中,则需修改config.php里面的cache配置: 3.实际运行测试: 第一个信息正常显示说明运行成功,第二个显示false,说明缓存删除成功 阅读全文
posted @ 2024-07-22 16:25 幽暗天琴 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 在uni-app中,如果你想要实现数据的缓存并让这个缓存保留24小时,你可以使用uni.setStorageSync(同步存储)或uni.setStorage(异步存储)方法结合JavaScript的日期时间处理来实现。不过,需要注意的是,uni.setStorage系列API本身并不直接支持设置过 阅读全文
posted @ 2024-07-17 20:13 幽暗天琴 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1.服务器搭建好宝塔面板,并开放用于连接websocket的端口:例如9502 2.本地准备好连接的文件,以thinkPHP举例: (1)根目录下的Websocket.php文件 (2)前端index入口文件添加test()方法,然后在view目录里添加相应的test.html test()方法: 阅读全文
posted @ 2024-07-15 18:37 幽暗天琴 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 问题描述:h5目录能正常使用,新建一个shop_h5目录,使用的时候没问题,刷新就报错 解决方法:在入口文件index.php操作重定向一下 阅读全文
posted @ 2024-07-04 18:56 幽暗天琴 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 错误信息: 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 幽暗天琴 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 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 幽暗天琴 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 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 幽暗天琴 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 一、效果:点击选项卡筛选符合的数据 二:实现方法: 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 幽暗天琴 阅读(278) 评论(0) 推荐(0) 编辑