会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qcy-blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
49
下一页
2024年7月24日
k8s 服务注册发现原理
摘要: 服务(Service)定义:当你在Kubernetes中创建一个服务(Service)资源时,Kubernetes API服务器会记录这个资源的元数据。 Endpoints:Kubernetes通过监控集群中的Pod自动创建与服务相对应的“endpoints”(端点)。Endpoints是指Serv
阅读全文
posted @ 2024-07-24 14:12 朝阳1
阅读(69)
评论(0)
推荐(0)
2024年7月23日
SplObserver 和 SplSubject 接口实现观察者模式
摘要: <?php class Subject implements SplSubject { private $observers = []; private $state; public function attach(SplObserver $observer) { $this->observers[
阅读全文
posted @ 2024-07-23 10:12 朝阳1
阅读(22)
评论(0)
推荐(0)
2024年7月20日
vue-quill-editor富文本编辑器
摘要: 安装 npm install vue-quill-editor --save 全局引入 import Vue from 'vue' import VueQuillEditor from 'vue-quill-editor' // 引入样式 import 'quill/dist/quill.core.
阅读全文
posted @ 2024-07-20 16:11 朝阳1
阅读(41)
评论(0)
推荐(0)
vue实现选中左边数据到右边
摘要: vue <template> <div class="container"> <el-row> <el-col :span="4"> <!-- 左边列表项 --> <div class="scrollable-menu"> <el-menu class="el-menu-vertical-demo"
阅读全文
posted @ 2024-07-20 11:02 朝阳1
阅读(187)
评论(0)
推荐(0)
2024年7月19日
Vue3+Elementplus 递归菜单展示
摘要: 这里只是做个笔记,js,css那些都没写 子组件 MenuItem <template> <template v-if="item.children"> <el-sub-menu :index="item.value"> <template #title>{{ item.label }}</temp
阅读全文
posted @ 2024-07-19 10:14 朝阳1
阅读(111)
评论(0)
推荐(0)
2024年7月15日
go根据模板生成代码入门
摘要: package main import ( "os" "text/template" ) const templateText = `package {{.PackageName}} type {{.StructName}} struct { Field1 string Field2 int } f
阅读全文
posted @ 2024-07-15 09:17 朝阳1
阅读(17)
评论(0)
推荐(0)
2024年7月12日
html+js实现选中左边的数据到右边
摘要: 效果 后台要开发个功能,给游戏内的用户赠送道具,先把道具列表展示,然后选择要增送的道具,可以加上道具图片进行页面美化 index.html 页面没有美化,只是实现了效果。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <
阅读全文
posted @ 2024-07-12 14:32 朝阳1
阅读(64)
评论(0)
推荐(0)
2024年7月11日
Go epoll+ws
摘要: main.go package main import ( "log" "net/http" _ "net/http/pprof" "syscall" "github.com/gobwas/ws" "github.com/gobwas/ws/wsutil" ) var epoller *epoll
阅读全文
posted @ 2024-07-11 15:41 朝阳1
阅读(23)
评论(0)
推荐(0)
2024年7月10日
php匿名类
摘要: PHP 7 支持通过 new class 来实例化一个匿名类,这可以用来替代一些"用后即焚"的完整类定义。 <?php interface Logger { public function log(string $msg); } class Application { private $logger
阅读全文
posted @ 2024-07-10 11:28 朝阳1
阅读(16)
评论(0)
推荐(0)
php实现中间件功能
摘要: <?php // 框架核心应用层 $application = function($name) { echo "this is a {$name} application\n"; }; // 前置校验中间件 $auth = function($handler) { return function($
阅读全文
posted @ 2024-07-10 10:32 朝阳1
阅读(44)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
49
下一页
公告