上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: $temUrl = $temApp['android'];if (dstrpos($_SERVER['HTTP_USER_AGENT'], ['iphone', 'ipad', 'ipod', 'mac', 'ios', 'playbook'])) { $temUrl = $temApp['ios' 阅读全文
posted @ 2025-03-25 18:13 幽暗天琴 阅读(17) 评论(0) 推荐(0)
摘要: https://www.workerman.net/doc/workerman/appendices/kernel-optimization.html php查询服务器CPU核心数量: function getCpuCores() { if (is_file('/proc/cpuinfo')) { 阅读全文
posted @ 2025-03-19 16:52 幽暗天琴 阅读(15) 评论(0) 推荐(0)
摘要: 1.软件商店安装mongodb: 2.PHP开启mongodb扩展(ps:如果有多个PHP版本,注意项目的PHP版本): 3.如果没有composer.json则新建一个,添加依赖说明: 4.项目根目录终端运行composer install安装依赖 5.连接案例: <?php// 1. 连接到 M 阅读全文
posted @ 2025-03-19 16:37 幽暗天琴 阅读(53) 评论(0) 推荐(0)
摘要: 原文链接:https://blog.nanzhi.vip/?article_id=12&type=blog 阅读全文
posted @ 2025-03-07 17:12 幽暗天琴 阅读(91) 评论(0) 推荐(1)
摘要: 修改宝塔命令行PHP版本: 方法1: 方法2:1.rm -f /usr/bin/php (删除默认版本软连接)2.ln -s /www/server/php/73/bin/php /usr/bin/php (需要切换的版本的地址) 3.php -v查看当前版本 阅读全文
posted @ 2025-03-07 11:46 幽暗天琴 阅读(114) 评论(0) 推荐(0)
摘要: 一、代码实例://需要成功引入并使用redis$redis = RedisManager::$redis;// 生产者:将订单加入队列(右端插入)function producer($orderId,$redis) { $redis->rPush('task_queue', $orderId); p 阅读全文
posted @ 2025-03-06 18:07 幽暗天琴 阅读(44) 评论(0) 推荐(0)
摘要: 手动实现防抖示例: <script>export default { // ...其他代码 data() { return { // ...其他数据 scrollTimeout: null, }; }, methods: { chatscroll(event) { clearTimeout(this 阅读全文
posted @ 2025-03-06 14:28 幽暗天琴 阅读(58) 评论(0) 推荐(0)
摘要: 一、建立SQL.js,内容如下: class SQL { constructor(plus) { // 数据库名称一个软件只需要一个库这里写死 this.name = 'sqlite_mine_sql'; this.prefix = 'im_'; //数据表前缀 this.plus = plus; 阅读全文
posted @ 2025-02-26 20:10 幽暗天琴 阅读(1522) 评论(0) 推荐(0)
摘要: Vue打包exe : https://gitee.com/zqylzcwcxy/variable-generation-tool 网址打包成exe文件:https://blog.nanzhi.vip/?article_id=13&type=blog 阅读全文
posted @ 2024-12-24 18:05 幽暗天琴 阅读(56) 评论(0) 推荐(0)
摘要: mobileBase() { // #ifdef APP-PLUS if (plus.os.name == "Android") { //这里是安卓 console.log('安卓'); } else { //这里是IOSconsole.log('IOS'); } // #endif // #ifd 阅读全文
posted @ 2024-11-29 18:10 幽暗天琴 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页