切换导航
🛠️ 开发工具箱
首页
时间戳转换
JSON格式化
Base64互转
API测试
PDF转Word
图片压缩
AI翻译
心得分享
心得分享
分享开发心得和技术经验
整洁代码之道:编写可维护的代码
编程思维
2026-05-02 19:30
整洁代码之道:编写可维护的代码 代码被阅读的次数远多于被编写的次数。编写整洁的代码不仅是一种职业素养,更是对团队和未来自己的尊重。本文将分享编写可维护代码的核心原则和实用技巧。 一、有意义的命名 // 不好的命名 var d; // 过于简短 var data; // 太泛 var flag; // 含义不明 var userList1; // 数字后缀 var temp; // ...
Node.js事件循环与性能优化
后端开发
2026-05-01 15:42
Node.js事件循环与性能优化 理解事件循环是掌握Node.js的关键。Node.js的单线程模型通过事件循环实现高并发,但也带来了独特的性能挑战。本文将深入解析事件循环机制,并介绍Node.js性能优化的实用技巧。 一、事件循环机制 // 事件循环阶段 // ┌──────────────────────────┐ // ┌─│ timers │...
Git高效工作流与团队协作
工具使用
2026-04-30 00:01
Git高效工作流与团队协作 Git是现代软件开发中不可或缺的版本控制工具,但很多团队在使用Git时只是停留在基本的add、commit、push层面,没有建立规范的工作流程。本文将介绍几种主流的Git工作流和团队协作最佳实践。 一、Git Flow工作流 Git Flow是最经典的分支模型,适合有明确发布周期的项目: # 主要分支 main # 生产环境代码,永远可部署 de...
Postman高级用法与API测试
工具使用
2026-04-29 09:05
Postman高级用法与API测试 Postman不仅是一个发送HTTP请求的工具,更是一个完整的API开发和测试平台。掌握其高级功能,可以大大提升API开发和测试的效率。本文将介绍Postman的高级用法和自动化测试实践。 一、环境变量与全局变量 // 环境变量配置 // Development环境 base_url: http://localhost:8080 api_key: dev_...
Vue3组合式API完全指南
前端开发
2026-04-29 03:41
Vue3组合式API完全指南 Vue3最大的变化之一就是引入了组合式API(Composition API),它彻底改变了我们组织组件逻辑的方式。与选项式API相比,组合式API提供了更好的代码组织、更灵活的逻辑复用和更优秀的TypeScript支持。本文将全面介绍组合式API的核心概念和实战技巧。 一、从选项式到组合式 选项式API按照选项类型组织代码,而组合式API按照逻辑功能组织代码:...
Vite构建工具深度解析
工具使用
2026-04-28 14:04
Vite构建工具深度解析 Vite是新一代前端构建工具,凭借原生ES模块和esbuild预构建,实现了极速的开发体验。相比Webpack,Vite在开发环境下几乎不需要等待就能启动。本文将深入介绍Vite的工作原理和高级配置。 一、核心原理 // Vite开发模式:基于原生ESM // 浏览器直接请求ES模块,Vite按需编译 // 传统打包工具:先打包所有模块,再启动服务器 // Vit...
Redis缓存策略与实战应用
数据库技术
2026-04-26 15:40
Redis缓存策略与实战应用 Redis作为最流行的内存数据库,在缓存、消息队列、排行榜等场景中有着广泛的应用。合理的缓存策略不仅能提升系统性能,还能避免缓存带来的数据一致性问题。本文将介绍Redis常见的缓存策略和实战技巧。 一、缓存更新策略 // Cache Aside - 最常用的缓存策略 function getUser($id) { $cacheKey = "user:{$...
React Hooks深入理解与实践
前端开发
2026-04-26 07:54
React Hooks深入理解与实践 React Hooks自16.8版本引入以来,彻底改变了React组件的编写方式。它让函数组件拥有了状态管理和副作用处理的能力,同时提供了更优雅的逻辑复用方案。本文将深入探讨Hooks的原理和高级用法。 一、useState与useReducer // useState - 基础状态管理 const [count, setCount] = useStat...
SQL查询优化进阶技巧
数据库技术
2026-04-26 05:13
SQL查询优化进阶技巧 写出能运行的SQL很容易,但写出高效的SQL却需要深入理解数据库的执行机制。本文将分享一些SQL查询优化的进阶技巧,帮助你在实际项目中写出更高效的查询。 一、执行计划深度解读 -- EXPLAIN FORMAT=JSON 提供更详细的信息 EXPLAIN FORMAT=JSON SELECT o.id, u.name, o.amount FROM orders o J...
PHP设计模式实战应用
后端开发
2026-04-24 21:29
PHP设计模式实战应用 设计模式是面向对象编程中经过验证的解决方案,它们不是可以直接复制的代码,而是解决特定问题的模板。在PHP开发中,合理使用设计模式可以让代码更灵活、更易维护、更易扩展。本文将介绍几种在PHP项目中常用的设计模式及其实战应用。 一、单例模式 确保一个类只有一个实例,常用于数据库连接、配置管理等场景: class Database { private static...
«
1
2
3
4
5
6
7
»
文章分类
全部文章
前端开发
后端开发
DevOps运维
数据库技术
工具使用
编程思维
开发心得
基本
文件
流程
错误
SQL
调试
请求信息 : 2026-07-06 13:54:33 HTTP/2.0 GET : www.xpwl.work/index/article
运行时间 : 0.051257s [ 吞吐率:19.51req/s ] 内存消耗:3,692.52kb 文件加载:78
查询信息 : 7 queries 1 writes
缓存信息 : 1 reads,1 writes
配置加载 : 76
/www/wwwroot/www.xpwl.work/public/index.php ( 0.88 KB )
/www/wwwroot/www.xpwl.work/thinkphp/start.php ( 0.72 KB )
/www/wwwroot/www.xpwl.work/thinkphp/base.php ( 2.60 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Loader.php ( 21.07 KB )
/www/wwwroot/www.xpwl.work/vendor/composer/autoload_static.php ( 10.49 KB )
/www/wwwroot/www.xpwl.work/vendor/symfony/deprecation-contracts/function.php ( 0.98 KB )
/www/wwwroot/www.xpwl.work/vendor/symfony/polyfill-php80/bootstrap.php ( 1.50 KB )
/www/wwwroot/www.xpwl.work/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
/www/wwwroot/www.xpwl.work/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
/www/wwwroot/www.xpwl.work/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
/www/wwwroot/www.xpwl.work/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
/www/wwwroot/www.xpwl.work/vendor/symfony/polyfill-php73/bootstrap.php ( 0.99 KB )
/www/wwwroot/www.xpwl.work/vendor/ezyang/htmlpurifier/library/HTMLPurifier.composer.php ( 0.10 KB )
/www/wwwroot/www.xpwl.work/vendor/topthink/think-helper/src/helper.php ( 2.88 KB )
/www/wwwroot/www.xpwl.work/vendor/fastadminnet/fastadmin-addons/src/common.php ( 15.67 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Route.php ( 60.23 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Config.php ( 6.38 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Hook.php ( 4.71 KB )
/www/wwwroot/www.xpwl.work/vendor/overtrue/wechat/src/Kernel/Support/Helpers.php ( 2.54 KB )
/www/wwwroot/www.xpwl.work/vendor/overtrue/wechat/src/Kernel/Helpers.php ( 1.89 KB )
/www/wwwroot/www.xpwl.work/vendor/topthink/think-captcha/src/helper.php ( 1.94 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Validate.php ( 42.78 KB )
/www/wwwroot/www.xpwl.work/vendor/topthink/think-queue/src/common.php ( 1.19 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Console.php ( 23.13 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Error.php ( 3.75 KB )
/www/wwwroot/www.xpwl.work/thinkphp/convention.php ( 10.37 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/App.php ( 21.58 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Request.php ( 49.78 KB )
/www/wwwroot/www.xpwl.work/application/config.php ( 12.00 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Env.php ( 1.21 KB )
/www/wwwroot/www.xpwl.work/application/database.php ( 2.17 KB )
/www/wwwroot/www.xpwl.work/application/extra/addons.php ( 0.19 KB )
/www/wwwroot/www.xpwl.work/application/extra/queue.php ( 0.55 KB )
/www/wwwroot/www.xpwl.work/application/extra/site.php ( 0.87 KB )
/www/wwwroot/www.xpwl.work/application/extra/upload.php ( 1.05 KB )
/www/wwwroot/www.xpwl.work/application/tags.php ( 1.23 KB )
/www/wwwroot/www.xpwl.work/application/common.php ( 15.57 KB )
/www/wwwroot/www.xpwl.work/thinkphp/helper.php ( 17.30 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Debug.php ( 7.13 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Log.php ( 6.05 KB )
/www/wwwroot/www.xpwl.work/addons/summernote/Summernote.php ( 1.42 KB )
/www/wwwroot/www.xpwl.work/vendor/fastadminnet/fastadmin-addons/src/Addons.php ( 7.64 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Cache.php ( 6.10 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/cache/driver/File.php ( 7.27 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/cache/Driver.php ( 5.98 KB )
/www/wwwroot/www.xpwl.work/application/common/behavior/Common.php ( 3.02 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Lang.php ( 7.42 KB )
/www/wwwroot/www.xpwl.work/thinkphp/lang/zh-cn.php ( 11.81 KB )
/www/wwwroot/www.xpwl.work/application/index/lang/zh-cn.php ( 10.79 KB )
/www/wwwroot/www.xpwl.work/extend/fast/Form.php ( 39.79 KB )
/www/wwwroot/www.xpwl.work/application/index/controller/Article.php ( 3.05 KB )
/www/wwwroot/www.xpwl.work/application/index/controller/Base.php ( 3.15 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Controller.php ( 6.07 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/traits/controller/Jump.php ( 4.92 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/View.php ( 6.77 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/view/driver/Think.php ( 5.64 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Template.php ( 44.92 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/template/driver/File.php ( 2.24 KB )
/www/wwwroot/www.xpwl.work/application/admin/model/Article.php ( 0.58 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Model.php ( 69.55 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Db.php ( 6.67 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/db/connector/Mysql.php ( 3.89 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/db/Connection.php ( 29.97 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/db/Query.php ( 93.80 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/db/builder/Mysql.php ( 4.53 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/db/Builder.php ( 31.81 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/model/relation/BelongsTo.php ( 7.75 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/model/relation/OneToOne.php ( 10.03 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/model/Relation.php ( 3.61 KB )
/www/wwwroot/www.xpwl.work/application/admin/model/Category.php ( 0.14 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/paginator/driver/Bootstrap.php ( 5.23 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Paginator.php ( 9.94 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/db/Expression.php ( 1.11 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Collection.php ( 11.10 KB )
/www/wwwroot/www.xpwl.work/application/admin/model/ToolUsageStats.php ( 0.37 KB )
/www/wwwroot/www.xpwl.work/runtime/temp/f129fe533e1b896832fbaa77dcac8f47.php ( 10.54 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/Response.php ( 8.28 KB )
/www/wwwroot/www.xpwl.work/thinkphp/library/think/debug/Html.php ( 4.17 KB )
[ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000029s ]
[ CACHE ] INIT File
[ BEHAVIOR ] Run Closure @app_init [ RunTime:0.001748s ]
[ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000610s ]
[ LANG ] /www/wwwroot/www.xpwl.work/thinkphp/lang/zh-cn.php
[ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000027s ]
[ ROUTE ] array ( 'type' => 'module', 'module' => array ( 0 => 'index', 1 => 'article', 2 => NULL, ), )
[ HEADER ] array ( 'accept-encoding' => 'gzip, br, zstd, deflate', 'user-agent' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'accept' => '*/*', 'host' => 'www.xpwl.work', 'content-length' => '', 'content-type' => '', )
[ PARAM ] array ( )
[ LANG ] /www/wwwroot/www.xpwl.work/public/../application/index/lang/zh-cn.php
[ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001714s ]
[ RUN ] app\index\controller\Article->index[ /www/wwwroot/www.xpwl.work/application/index/controller/Article.php ]
[ DB ] INIT mysql
[ VIEW ] /www/wwwroot/www.xpwl.work/public/../application/index/view/article/index.html [ array ( 0 => 'site', 1 => 'canonical_url', 2 => 'seo', 3 => 'list', 4 => 'categories', 5 => 'currentCategoryId', ) ]
0.051986s