const allBorder = [ 'border-top', 'border-bottom', 'border-left', 'border-right', ] const width = position.find((item) => item.trim().includes('border-width')) const widthValue = width.split(':')?.[1] const styles = position.find((item) => item.trim().includes('border-style')) const stylesValue = styles.split(':')?.[1] const borderValue = `${widthValue} ${value.trim()} ${stylesValue}` allBorder.forEach((item) => { this.sheet.current.setStyle(target, item, borderValue); })优化代码

时间: 2024-02-14 16:28:06 浏览: 29
你可以尝试使用数组的`map`方法来优化这段代码。这样你就不需要使用`forEach`循环来遍历`allBorder`数组了。以下是优化后的代码示例: ```javascript const allBorder = [ 'border-top', 'border-bottom', 'border-left', 'border-right', ]; const width = position.find((item) => item.trim().includes('border-width')); const widthValue = width.split(':')?.[1]; const styles = position.find((item) => item.trim().includes('border-style')); const stylesValue = styles.split(':')?.[1]; const borderValue = `${widthValue} ${value.trim()} ${stylesValue}`; allBorder.map(item => this.sheet.current.setStyle(target, item, borderValue)); ``` 使用`map`方法可以更简洁地实现对数组元素的遍历,并且可以直接调用`setStyle`方法进行样式设置。
相关问题

请根据代码片段仿写实现div左下角拖拽移动用具体代码实现,import Vue from 'vue' Vue.directive('dialogZoomOut', { bind(el, binding, vnode, oldVnode) { let minWidth = 400;let minHeight = 300;let isFullScreen = false; let nowWidth = 0;let nowHight = 0;let nowMarginTop = 0;const dialogHeaderEl = el.querySelector('.el-dialog__header');const dragDom = el.querySelector('.el-dialog');dragDom.style.overflow = "auto";dialogHeaderEl.onselectstart = new Function("return false");dialogHeaderEl.style.cursor = 'move';const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null);let moveDown = (e) => {const disX = e.clientX - dialogHeaderEl.offsetLeft;const disY = e.clientY - dialogHeaderEl.offsetTop;let styL, styT;if (sty.left.includes('%')) {styL = +document.body.clientWidth * (+sty.left.replace(/%/g, '') / 100);styT = +document.body.clientHeight * (+sty.top.replace(/%/g, '') / 100);} else {styL = +sty.left.replace(/px/g, '');styT = +sty.top.replace(/px/g, '');};document.onmousemove = function (e) {const l = e.clientX - disX;const t = e.clientY - disY;dragDom.style.left = `${l + styL}px`;dragDom.style.top = `${t + styT}px`;};document.onmouseup = function (e) {document.onmousemove = null;document.onmouseup = null;};}dialogHeaderEl.onmousedown = moveDown;dialogHeaderEl.ondblclick = (e) => {if (isFullScreen == false) {nowHight = dragDom.clientHeight;nowWidth = dragDom.clientWidth;nowMarginTop = dragDom.style.marginTop;dragDom.style.left = 0;dragDom.style.top = 0;dragDom.style.height = "100VH";dragDom.style.width = "100VW";dragDom.style.marginTop = 0;isFullScreen = true;dialogHeaderEl.style.cursor = 'initial';dialogHeaderEl.onmousedown = null;} else {dragDom.style.height = "auto";dragDom.style.width = nowWidth + 'px';dragDom.style.marginTop = nowMarginTop;isFullScreen = false;dialogHeaderEl.style.cursor = 'move';dialogHeaderEl.onmousedown = moveDown;}}let resizeEl = document.createElement("div");dragDom.appendChild(resizeEl);resizeEl.style.cursor = 'se-resize';resizeEl.style.position = 'absolute';resizeEl.style.height = '10px';resizeEl.style.width = '10px';resizeEl.style.right = '0px';resizeEl.style.bottom = '0px';resizeEl.style.zIndex = '99';resizeEl.onmousedown = (e) => {let clientX = e.clientX;let disX = e.clientX - resizeEl.offsetLeft;let disY = e.clientY - resizeEl.offsetTop;document.onmousemove = function (e) {e.preventDefault(); let x = e.clientX - disX + (e.clientX - clientX);let y = e.clientY - disY;dragDom.style.width = x > minWidth ? `${x}px` : minWidth + 'px';dragDom.style.height = y > minHeight ? `${y}px` : minHeight + 'px';};document.onmouseup = function (e) {document.onmousemove = null;document.onmouseup = null;};}}})

以下是仿写的代码实现: ```html <template> <div class="dialog-wrapper" v-dialog-zoom-out> <div class="el-dialog"> <div class="el-dialog__header">Dialog Title</div> <div class="el-dialog__body">Dialog Content</div> <div class="el-dialog__footer"> <button @click="$emit('close')">Close</button> </div> <div class="el-dialog__resize"></div> </div> </div> </template> <script> export default { name: "Dialog", }; </script> <style> .dialog-wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .el-dialog { position: absolute; top: 0; left: 0; overflow: auto; max-height: 80vh; background-color: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } .el-dialog__header { padding: 16px; background-color: #f5f7fa; border-top-left-radius: 4px; border-top-right-radius: 4px; cursor: move; } .el-dialog__body { padding: 16px; } .el-dialog__footer { display: flex; justify-content: flex-end; padding: 16px; background-color: #f5f7fa; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; } .el-dialog__footer button { padding: 8px 16px; background-color: #fff; border: 1px solid #c1c1c1; border-radius: 4px; cursor: pointer; } .el-dialog__resize { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; cursor: se-resize; background-color: #c1c1c1; } </style> ``` ```javascript import Vue from "vue"; Vue.directive("dialogZoomOut", { bind(el, binding, vnode, oldVnode) { let minWidth = 400; let minHeight = 300; let isFullScreen = false; let nowWidth = 0; let nowHight = 0; let nowMarginTop = 0; const dialogHeaderEl = el.querySelector(".el-dialog__header"); const dragDom = el.querySelector(".el-dialog"); dragDom.style.overflow = "auto"; dialogHeaderEl.onselectstart = new Function("return false"); dialogHeaderEl.style.cursor = "move"; const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null); let moveDown = (e) => { const disX = e.clientX - dialogHeaderEl.offsetLeft; const disY = e.clientY - dialogHeaderEl.offsetTop; let styL, styT; if (sty.left.includes("%")) { styL = +document.body.clientWidth * (+sty.left.replace(/%/g, "") / 100); styT = +document.body.clientHeight * (+sty.top.replace(/%/g, "") / 100); } else { styL = +sty.left.replace(/px/g, ""); styT = +sty.top.replace(/px/g, ""); } document.onmousemove = function (e) { const l = e.clientX - disX; const t = e.clientY - disY; dragDom.style.left = `${l + styL}px`; dragDom.style.top = `${t + styT}px`; }; document.onmouseup = function (e) { document.onmousemove = null; document.onmouseup = null; }; }; dialogHeaderEl.onmousedown = moveDown; dialogHeaderEl.ondblclick = (e) => { if (isFullScreen == false) { nowHight = dragDom.clientHeight; nowWidth = dragDom.clientWidth; nowMarginTop = dragDom.style.marginTop; dragDom.style.left = 0; dragDom.style.top = 0; dragDom.style.height = "100VH"; dragDom.style.width = "100VW"; dragDom.style.marginTop = 0; isFullScreen = true; dialogHeaderEl.style.cursor = "initial"; dialogHeaderEl.onmousedown = null; } else { dragDom.style.height = "auto"; dragDom.style.width = nowWidth + "px"; dragDom.style.marginTop = nowMarginTop; isFullScreen = false; dialogHeaderEl.style.cursor = "move"; dialogHeaderEl.onmousedown = moveDown; } }; let resizeEl = document.createElement("div"); dragDom.appendChild(resizeEl); resizeEl.style.cursor = "se-resize"; resizeEl.style.position = "absolute"; resizeEl.style.height = "10px"; resizeEl.style.width = "10px"; resizeEl.style.right = "0px"; resizeEl.style.bottom = "0px"; resizeEl.style.zIndex = "99"; resizeEl.onmousedown = (e) => { let clientX = e.clientX; let disX = e.clientX - resizeEl.offsetLeft; let disY = e.clientY - resizeEl.offsetTop; document.onmousemove = function (e) { e.preventDefault(); let x = e.clientX - disX + (e.clientX - clientX); let y = e.clientY - disY; dragDom.style.width = x > minWidth ? `${x}px` : minWidth + "px"; dragDom.style.height = y > minHeight ? `${y}px` : minHeight + "px"; }; document.onmouseup = function (e) { document.onmousemove = null; document.onmouseup = null; }; }; }, }); ``` 上述代码实现了一个类似于Element UI中的Dialog组件的拖拽和缩放功能。在使用时,只需要将 `v-dialog-zoom-out` 指令绑定到Dialog组件的容器元素上,即可实现拖拽和缩放功能。

<script setup> import useGetUrl from "@/hooks/useGetUrl"; import { reactive ,onMounted} from "vue"; const state = reactive({ inputText: "", isKeyboardVisible: false, messages: [ { content: "施主你好,很高兴为您服务!", msg: { time:"" } }, ], sendMessage: () => { const content = state.inputText.trim(); if (content) { const time = new Date(); const message = { id: state.messages.length + 1, content, time, isUser: true, }; state.messages.push(message); state.inputText = ""; state.replyMessage(); } }, replyMessage: () => { const content = "尊敬的施主,您好。我们已收到您的咨询,请稍后。"; const time = new Date(); const message = { id: state.messages.length + 1, content, time, isUser: false, }; setTimeout(() => { state.messages.push(message); }, 1000); }, formatDate: (time) => { const date = time?new Date(time):new Date(); const hours = date.getHours().toString().padStart(2, "0"); const minutes = date.getMinutes().toString().padStart(2, "0"); return ${hours}:${minutes}; }, showKeyboard() { state.isKeyboardVisible = true; document.querySelector("input").focus(); }, hideKeyboard() { state.isKeyboardVisible = false; document.activeElement.focus(); }, // handleScroll() { // const chatList = this.$refs.chatList; // const scrollTop = chatList.scrollTop; // const scrollHeight = chatList.scrollHeight; // const clientHeight = chatList.clientHeight; // if (scrollTop === 0) { // // 聊天列表滚动到了顶部,需要加载更多聊天记录 // // TODO: 加载更多聊天记录 // // 滚动到之前的位置,避免列表跳动 // chatList.scrollTop = chatList.scrollHeight - scrollHeight; // } else if (scrollTop + clientHeight >= scrollHeight) { // // 聊天列表滚动到了底部,需要将列表自动上滑 // chatList.scrollTop = chatList.scrollHeight - clientHeight; // } // }, }); onMounted(() => { state.messages[0].msg.time = state.formatDate() }) </script>在该段代码中增加列表置底后上滑

可以在聊天列表上添加一个ref属性,用于获取聊天列表的dom节点,然后在sendMessage和replyMessage方法中,将聊天列表的scrollTop设置为聊天列表的scrollHeight,实现自动置底。在handleScroll方法中,可以判断scrollTop是否为0,如果为0则说明聊天列表已经滚动到了顶部,可以加载更多聊天记录;如果scrollTop加上clientHeight大于等于scrollHeight,则说明聊天列表已经滚动到了底部,需要将列表自动上滑。以下是修改后的代码: ``` <template> <div class="chat-container"> <div class="chat-header">在线客服</div> <div class="chat-list" ref="chatList"> <div class="chat-message" v-for="message in state.messages" :key="message.id"> <div class="chat-content" :class="{'user': message.isUser}"> <div class="chat-text">{{ message.content }}</div> <div class="chat-time">{{ state.formatDate(message.time) }}</div> </div> </div> </div> <div class="chat-input"> <div class="chat-input-box" :class="{'show-keyboard': state.isKeyboardVisible}"> <input type="text" v-model="state.inputText" placeholder="请输入您的问题" /> <div class="chat-input-btn" @click="state.sendMessage">发送</div> <div class="chat-input-keyboard" @click="state.showKeyboard">键盘</div> <div class="chat-input-voice">语音</div> </div> <div class="chat-input-keyboard-box" v-show="state.isKeyboardVisible"> <div class="chat-input-keyboard-item" v-for="(item, index) in state.keyboard" :key="index" @click="state.inputText += item">{{ item }}</div> <div class="chat-input-keyboard-item" @click="state.inputText = state.inputText.slice(0, -1)">删除</div> <div class="chat-input-keyboard-item" @click="state.hideKeyboard">收起</div> </div> </div> </div> </template> <script setup> import { reactive, onMounted } from "vue"; import useGetUrl from "@/hooks/useGetUrl"; const state = reactive({ inputText: "", isKeyboardVisible: false, messages: [ { content: "施主你好,很高兴为您服务!", time: new Date(), isUser: false, }, ], keyboard: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"], sendMessage: () => { const content = state.inputText.trim(); if (content) { const time = new Date(); const message = { id: state.messages.length + 1, content, time, isUser: true, }; state.messages.push(message); state.inputText = ""; state.replyMessage(); state.scrollToBottom(); } }, replyMessage: () => { const content = "尊敬的施主,您好。我们已收到您的咨询,请稍后。"; const time = new Date(); const message = { id: state.messages.length + 1, content, time, isUser: false, }; setTimeout(() => { state.messages.push(message); state.scrollToBottom(); }, 1000); }, formatDate: (time) => { const date = time ? new Date(time) : new Date(); const hours = date.getHours().toString().padStart(2, "0"); const minutes = date.getMinutes().toString().padStart(2, "0"); return `${hours}:${minutes}`; }, showKeyboard() { state.isKeyboardVisible = true; document.querySelector("input").focus(); }, hideKeyboard() { state.isKeyboardVisible = false; document.activeElement.focus(); }, scrollToBottom() { const chatList = this.$refs.chatList; chatList.scrollTop = chatList.scrollHeight; }, }); onMounted(() => { state.messages[0].time = state.formatDate(); }); </script> <style scoped> .chat-container { width: 100%; height: 100%; display: flex; flex-direction: column; } .chat-header { height: 40px; line-height: 40px; background-color: #f5f5f5; text-align: center; } .chat-list { flex: 1; overflow-y: auto; padding: 10px; } .chat-message { margin-bottom: 10px; } .chat-content { display: inline-block; padding: 5px 10px; border-radius: 10px; max-width: 80%; word-wrap: break-word; } .chat-content.user { text-align: right; background-color: #e6f7ff; } .chat-content.user .chat-text { display: inline-block; text-align: left; } .chat-content:not(.user) { text-align: left; background-color: #fff; } .chat-time { font-size: 12px; color: #999; text-align: right; margin-top: 5px; } .chat-input { height: 50px; border-top: 1px solid #ddd; display: flex; align-items: center; justify-content: center; position: relative; } .chat-input-box { width: 100%; display: flex; align-items: center; justify-content: center; position: absolute; bottom: 0; left: 0; padding: 5px; } .chat-input-btn { background-color: #409eff; color: #fff; padding: 5px 10px; border-radius: 5px; margin-left: 10px; cursor: pointer; } .chat-input-keyboard { font-size: 20px; margin-left: 10px; cursor: pointer; } .chat-input-voice { font-size: 20px; margin-left: 10px; cursor: pointer; } .chat-input-keyboard-box { width: 100%; display: none; position: absolute; bottom: 50px; left: 0; background-color: #fff; border-top: 1px solid #ddd; } .chat-input-keyboard-box.show { display: block; } .chat-input-keyboard-item { display: inline-block; width: calc(100% / 3); height: 40px; line-height: 40px; text-align: center; cursor: pointer; } .chat-input-keyboard-item:nth-child(10) { width: calc(100% / 3 * 2); } .show-keyboard .chat-input-keyboard-box { display: block; } </style> ```

相关推荐

<template> <view class="box"> <view style="text-align: center;padding: 10rpx;"> <image class="image" src="../../static/images/icons/male.png" mode="scaleToFill" /> <view style="font-size: 24rpx;color: #a6a8ac;">男生</view> </view> <view class="mid"> <view class="flex" style="justify-content: space-between;"> <view class="males">{{ malePercent }}%</view> <view class="females">{{ femalePercent }}%</view> </view> <view class="progress-bar"> <view class="male" :style="{ width: malePercent + '%' }"></view> <view class="progress"> <view class="progress-bar-inner" :style="{ width: percent + '%' }"></view> </view> <view class="female" :style="{ width: femalePercent + '%' }"></view> </view> </view> <view style="text-align: center;padding: 10rpx;"> <image class="image" src="../../static/images/icons/female.png" mode="scaleToFill" /> <view style="font-size: 24rpx;color: #a6a8ac;">女生</view> </view> </view> </template> <script setup> import { computed } from 'vue' const props = defineProps({ male: { type: Number, requirde: true }, female: { type: Number, requirde: true }, }) // 总比例 const percent = computed(() => { return props.male / (props.male + props.female) * 100 }) // 男生比例 const malePercent = computed(() => { return Math.round(props.male / (props.male + props.female) * 100) }) // 女生比例 const femalePercent = computed(() => { return Math.round(props.female / (props.male + props.female) * 100) }) </script> <style lang="scss" scoped> .progress-bar { display: flex; align-items: center; height: 30rpx; width: 100%; border: 1px solid #ccc; border-radius: 30rpx; overflow: hidden; } .progress-bar .male, .progress-bar .female { display: flex; justify-content: center; align-items: center; height: 100%; color: #fff; font-size: 14px; font-weight: bold; } .progress-bar .male { flex: 0 0 auto; background-color: #007bff; } .progress-bar .progress { flex: 1 1 auto; height: 100%; position: relative; } .progress-bar .progress .progress-bar-inner { height: 100%; background-color: #28a745; position: absolute; top: 0; left: 0; } .progress-bar .female { flex: 0 0 auto; background-color: #dc3545; } .content { justify-content: space-between; } .males { color: #007bff; font-size: 24rpx; } .females { color: #dc3545; font-size: 24rpx; } .box { display: flex; justify-content: space-around; align-items: center; margin-top: 50rpx; margin-bottom: 50rpx; .mid { width: 70%; } } .image { height: 60rpx; width: 60rpx; } </style> 帮我把上述代码改成只传male一个值就可以显示出male和female两个的比例出来

优化下面的代码,要求固定侧边栏和头部,解决侧边栏遮挡内容显示区域的情况<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>后台管理界面示例</title> <style> body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; } header { background-color: #333; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 20px 20px; position: fixed; top: 0; left: 0; right: 0; z-index: 1; } header h1 { margin: 0; font-size: 24px; } header .user { display: flex; align-items: center; cursor: pointer; } header .user img { width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; } .sidebar { background-color: #eee; position: absolute; top: 70px; left: -200px; bottom: 0; width: 200px; padding: 10px; overflow: auto; z-index: 1; transition: left 0.3s ease-in-out; } .sidebar.show { left: 0; } .sidebar h2 { margin: 0; font-size: 18px; margin-bottom: 10px; } .sidebar ul { padding: 0; margin: 0; list-style: none; } .sidebar li { margin-bottom: 5px; } .sidebar a { display: block; padding: 5px 10px; color: #333; border-radius: 5px; text-decoration: none; background-color: #fff; transition: background-color 0.2s ease-in-out; } .sidebar a:hover { background-color: #ddd; } .content { margin: 60px 0 0 220px; padding: 10px; background-color: #f5f5f5; min-height: calc(100vh - 70px - 10px); } </style> </head> <body>
中央管理平台 未登录
功能模块
用户管理 添加用户 删除用户 修改用户 数据库管理 备份数据库 还原数据库 页面管理 添加页面 删除页面 修改页面 <script> // 动态计算内容区域的左边距,避免与侧边栏重合 function adjustContentMargin() { const sidebarWidth = document.querySelector('.sidebar').offsetWidth; document.querySelector('.content').style.marginLeft = sidebarWidth + 'px'; } adjustContentMargin(); window.addEventListener('resize', adjustContentMargin); // 点击菜单按钮时显示/隐藏侧边栏 document.querySelector('.menu-btn').addEventListener('click', () => { document.querySelector('.sidebar').classList.toggle('show'); }); // 模拟后端数据传来时,只刷新头部和侧边栏之外的区域 setTimeout(() => { document.querySelector('.content').innerHTML = '欢迎使用中央管理平台这里是内容区域,只有在后端有数据传来时才会刷新。'; adjustContentMargin(); // 内容区域高度可能会变化,需要重新计算左边距 }, 3000); </script> </body> </html>

最新推荐

recommend-type

基于AT89C51单片机的三电梯联动控制系统+全部资料+详细文档(高分项目).zip

【资源说明】 基于AT89C51单片机的三电梯联动控制系统+全部资料+详细文档(高分项目).zip基于AT89C51单片机的三电梯联动控制系统+全部资料+详细文档(高分项目).zip基于AT89C51单片机的三电梯联动控制系统+全部资料+详细文档(高分项目).zip 【备注】 1、该项目是个人高分项目源码,已获导师指导认可通过,答辩评审分达到95分 2、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 3、本项目适合计算机相关专业(人工智能、通信工程、自动化、电子信息、物联网等)的在校学生、老师或者企业员工下载使用,也可作为毕业设计、课程设计、作业、项目初期立项演示等,当然也适合小白学习进阶。 4、如果基础还行,可以在此代码基础上进行修改,以实现其他功能,也可直接用于毕设、课设、作业等。 欢迎下载,沟通交流,互相学习,共同进步!
recommend-type

梯度下降算法:介绍梯度下降算法 实例说明其运行原理

梯度下降算法,介绍梯度下降算法 实例说明其运行原理,供学习参考。
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

实现实时数据湖架构:Kafka与Hive集成

![实现实时数据湖架构:Kafka与Hive集成](https://img-blog.csdnimg.cn/img_convert/10eb2e6972b3b6086286fc64c0b3ee41.jpeg) # 1. 实时数据湖架构概述** 实时数据湖是一种现代数据管理架构,它允许企业以低延迟的方式收集、存储和处理大量数据。与传统数据仓库不同,实时数据湖不依赖于预先定义的模式,而是采用灵活的架构,可以处理各种数据类型和格式。这种架构为企业提供了以下优势: - **实时洞察:**实时数据湖允许企业访问最新的数据,从而做出更明智的决策。 - **数据民主化:**实时数据湖使各种利益相关者都可
recommend-type

list根据id查询pid 然后依次获取到所有的子节点数据

可以使用递归的方式来实现根据id查询pid并获取所有子节点数据。具体实现可以参考以下代码: ``` def get_children_nodes(nodes, parent_id): children = [] for node in nodes: if node['pid'] == parent_id: node['children'] = get_children_nodes(nodes, node['id']) children.append(node) return children # 测试数
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。
recommend-type

"互动学习:行动中的多样性与论文攻读经历"

多样性她- 事实上SCI NCES你的时间表ECOLEDO C Tora SC和NCESPOUR l’Ingén学习互动,互动学习以行动为中心的强化学习学会互动,互动学习,以行动为中心的强化学习计算机科学博士论文于2021年9月28日在Villeneuve d'Asq公开支持马修·瑟林评审团主席法布里斯·勒菲弗尔阿维尼翁大学教授论文指导奥利维尔·皮耶昆谷歌研究教授:智囊团论文联合主任菲利普·普雷教授,大学。里尔/CRISTAL/因里亚报告员奥利维耶·西格德索邦大学报告员卢多维奇·德诺耶教授,Facebook /索邦大学审查员越南圣迈IMT Atlantic高级讲师邀请弗洛里安·斯特鲁布博士,Deepmind对于那些及时看到自己错误的人...3谢谢你首先,我要感谢我的两位博士生导师Olivier和Philippe。奥利维尔,"站在巨人的肩膀上"这句话对你来说完全有意义了。从科学上讲,你知道在这篇论文的(许多)错误中,你是我可以依
recommend-type

实现实时监控告警系统:Kafka与Grafana整合

![实现实时监控告警系统:Kafka与Grafana整合](https://imgconvert.csdnimg.cn/aHR0cHM6Ly9tbWJpei5xcGljLmNuL21tYml6X2pwZy9BVldpY3ladXVDbEZpY1pLWmw2bUVaWXFUcEdLT1VDdkxRSmQxZXB5R1lxaWNlUjA2c0hFek5Qc3FyRktudFF1VDMxQVl3QTRXV2lhSWFRMEFRc0I1cW1ZOGcvNjQw?x-oss-process=image/format,png) # 1.1 Kafka集群架构 Kafka集群由多个称为代理的服务器组成,这
recommend-type

未定义标识符CFileFind

CFileFind 是MFC(Microsoft Foundation Class)中的一个类,用于在Windows文件系统中搜索文件和目录。如果你在使用CFileFind时出现了“未定义标识符”的错误,可能是因为你没有包含MFC头文件或者没有链接MFC库。你可以检查一下你的代码中是否包含了以下头文件: ```cpp #include <afx.h> ``` 另外,如果你在使用Visual Studio开发,还需要在项目属性中将“使用MFC”设置为“使用MFC的共享DLL”。这样才能正确链接MFC库。