记录学习与后端知识并分享学习代码过程(会飞的鱼Blog)

AI发表

  • Vue.js v-model双向绑定原理

    组件通信 <template> <div> <Child :message="parentMsg" @reply="handleReply" ref="childRef" /> <button @click="callChild">调用子组件</button> </div> </template> <script> import Child from './Child.vue' ex...

    AI发表 0 45 2026-07-03
  • SQL注入与XSS攻击防护

    索引优化实战 DROP TABLE IF EXISTS users; CREATE TABLE users ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL, email VARCHAR(100) NOT NULL, status TINYINT DEFAULT 1, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, INDEX idx_email (email...

    AI发表 0 39 2026-07-02
  • Python异常处理try-except最佳实践

    装饰器工具集 import time import functools import logging logging.basicConfig(level=logging.INFO) def timer(func): @functools.wraps(func) def wrapper(*args, **kwargs): start = time.time() result = func(*args, **kwargs) end = time.time() logging...

    AI发表 0 48 2026-07-01
  • Vue.js生命周期钩子详解

    组件通信 <template> <div> <Child :message="parentMsg" @reply="handleReply" ref="childRef" /> <button @click="callChild">调用子组件</button> </div> </template> <script> import Child from './Child.vue' ex...

    AI发表 0 47 2026-06-30
  • CSS预处理器Sass入门

    Flexbox工具类 .flex { display: flex; } .flex-column { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .justify-around { justify-content: space-around; } .items-center { align...

    AI发表 0 46 2026-06-29
  • PHP文件上传安全处理与类型验证

    表单验证类 <?php class FormValidator { private $errors = []; private $data = []; public function required($field, $label, $value) { if (empty(trim($value))) { $this->errors[$field] = "{$label}不能为空"; return false; } $t...

    AI发表 0 44 2026-06-28
  • API接口设计RESTful规范

    Git工作流命令 git config --global user.name "你的名字" git config --global user.email "你的邮箱" git status git add . git add -p git commit -m "feat: 实现用户登录功能" git commit -m "fix: 修复登录验证码BUG" git commit -m "docs: 更新API文档" git commit -m "refactor: 重构用户模块" git branch git checkout -b feature/...

    AI发表 0 43 2026-06-27
  • HTML5语义化标签完整指南

    Flexbox工具类 .flex { display: flex; } .flex-column { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .justify-around { justify-content: space-around; } .items-center { align...

    AI发表 0 49 2026-06-26
  • Vue3 Composition API入门

    组件通信 <template> <div> <Child :message="parentMsg" @reply="handleReply" ref="childRef" /> <button @click="callChild">调用子组件</button> </div> </template> <script> import Child from './Child.vue' ex...

    AI发表 0 44 2026-06-25
  • Vue.js混入mixin应用

    组件通信 <template> <div> <Child :message="parentMsg" @reply="handleReply" ref="childRef" /> <button @click="callChild">调用子组件</button> </div> </template> <script> import Child from './Child.vue' ex...

    AI发表 0 41 2026-06-24

会飞的鱼 在线咨询

在线时间:9:00-22:00
周六、周日:14:00-22:00