上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 49 下一页
摘要: 服务(Service)定义:当你在Kubernetes中创建一个服务(Service)资源时,Kubernetes API服务器会记录这个资源的元数据。 Endpoints:Kubernetes通过监控集群中的Pod自动创建与服务相对应的“endpoints”(端点)。Endpoints是指Serv 阅读全文
posted @ 2024-07-24 14:12 朝阳1 阅读(69) 评论(0) 推荐(0)
摘要: <?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)
摘要: 安装 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 <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)
摘要: 这里只是做个笔记,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)
摘要: 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)
摘要: 效果 后台要开发个功能,给游戏内的用户赠送道具,先把道具列表展示,然后选择要增送的道具,可以加上道具图片进行页面美化 index.html 页面没有美化,只是实现了效果。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> < 阅读全文
posted @ 2024-07-12 14:32 朝阳1 阅读(64) 评论(0) 推荐(0)
摘要: 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)
摘要: 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 // 框架核心应用层 $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 下一页