DeepSeek 助力 Vue 开发:打造丝滑的 复选框(Checkbox)

news/2025/2/26 21:07:44/

前言:哈喽,大家好,今天给大家分享一篇文章!并提供具体代码帮助大家深入理解,彻底掌握!创作不易,如果能帮助到大家或者给大家一些灵感和启发,欢迎收藏+关注哦 💕

共同探索软件研发!敬请关注【宝码香车】
关注描述

csdngif标识

目录

  • DeepSeek 助力 Vue 开发:打造丝滑的 复选框(Checkbox)
    • 📚前言
    • 📚页面效果
    • 📚指令输入
      • 属性定义
        • 基础属性
        • 样式相关属性
        • 状态相关属性
      • 事件定义
      • 其他
        • 组件设计
        • 文档和示例
    • 📚think
      • 📘组件代码
    • 📚代码测试
    • 📚测试代码正常跑通,附其他基本代码
      • 📘编写路由 src\router\index.js
      • 📘编写展示入口 src\App.vue
    • 📚页面效果
    • 📚相关文章


📚📗📕📘📖🕮💡📝🗂️✍️🛠️💻🚀🎉🏗️🌐🖼️🔗📊👉🔖⚠️🌟🔐⬇️·正文开始⬇️·🎥😊🎓📩😺🌈🤝🤖📜📋🔍✅🧰❓📄📢📈 🙋0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣🔟🆗*️⃣#️⃣

DeepSeek__Vue__Checkbox_12">DeepSeek 助力 Vue 开发:打造丝滑的 复选框(Checkbox)

📚前言

在模型优化方面,DeepSeek 进行了多方面的技术革新。提出动态稀疏注意力机制,将自注意力层的计算复杂度从 O (n²) 降至 O (n log n),在保持 95% 精度的前提下降低 40% 计算量,有效解决了模型训练中的计算效率问题。研发混合精度训练框架,通过 FP16 量化 + 梯度缩放技术,使训练吞吐量提升 2.8 倍,在保证模型精度的同时,提高了训练速度。实现模型架构搜索(NAS)自动化,采用基于强化学习的控制器,在 500GPU 小时内完成对 12 种模块组合的探索,能够快速找到最优的模型架构,提升模型性能。

📚页面效果

<a class=DeepSeek 助力 Vue 开发:打造丝滑的 复选框(Checkbox)页面效果" />

📚指令输入

已经创建好了一个基于Vue3的组合式API的项目(Composition API),并能正常运行起来,请帮我用 Vue3的组合式API(Composition API) 生成一个 复选框(Checkbox) 的功能组件,所有代码都保存在components/Checkbox 下的文件夹中。功能组件的script标签中只有setup属性,使用普通 JavaScript 实现,不使用TypeScript。
功能要有,如下属性:

属性定义

基础属性
  1. modelValue
  • 类型:BooleanArray(多选组时)
  • 作用:用于双向数据绑定,反映复选框的选中状态。当用于单个复选框时为布尔值,用于复选框组时为数组,存储选中项的值。
  1. disabled
  • 类型:Boolean
  • 作用:控制复选框是否禁用,禁用状态下用户无法点击操作。
  1. value
  • 类型:任意类型
  • 作用:当复选框作为复选框组的一部分时,用于标识该复选框的值,会在选中时添加到 modelValue 数组中。
  1. label
  • 类型:String
  • 作用:复选框旁边显示的文本标签。
样式相关属性
  1. size
  • 类型:String,可选值如 'small', 'medium', 'large'
  • 作用:控制复选框的大小,方便在不同场景下使用。
  1. color
  • 类型:String
  • 作用:自定义复选框选中时的颜色,增强视觉效果。
状态相关属性
  1. indeterminate
  • 类型:Boolean
  • 作用:设置复选框为半选中状态,常用于父复选框与子复选框的关联场景。

事件定义

  1. update:modelValue
  • 作用:当复选框的选中状态改变时触发,用于更新 modelValue 的值,实现双向数据绑定。
  1. change
  • 作用:复选框状态改变时触发,可用于监听状态变化并执行自定义逻辑。
  1. click
  • 作用:当用户点击复选框时触发,可用于处理点击事件,如添加额外的交互效果。

其他

组件设计
  1. 支持插槽:允许用户自定义复选框旁边的内容,不仅仅局限于文本标签,增强组件的灵活性。
  2. 可访问性:确保组件符合无障碍标准,如添加适当的 aria- 属性,方便屏幕阅读器识别和使用。
  3. 分组功能:设计复选框组组件,方便管理多个复选框,实现全选、反选等功能。
文档和示例
  1. 详细文档:提供清晰的组件文档,包括属性说明、事件说明、使用示例等,方便其他开发者使用。
  2. 在线示例:提供在线的代码示例,让开发者可以直观地看到组件的效果和使用方法。

你有更好的建议也可以添加,要注明。组件定义好后给出5个及以上的调用示例。
下面是现有目录
vueAndDeepseek/
├── src/ # 源代码目录
│ ├── assets/ # 静态资源
│ │ ├── base.css
│ │ ├── main.css
│ │ └── logo.svg
│ ├── components/ # 组件目录
│ │ ├── HelloWorld.vue
│ │ ├── TheWelcome.vue
│ │ ├── WelcomeItem.vue
│ │ ├── Progress/
│ │ │ └── Progress.vue
│ │ ├── Accordion/
│ │ ├── BackToTop/
│ │ ├── Card/
│ │ ├── InfiniteScroll/
│ │ ├── Notification/
│ │ ├── Timeline/
│ │ ├── Switch/
│ │ ├── Tabs/
│ │ ├── Sidebar/
│ │ ├── Breadcrumbs/
│ │ ├── MasonryLayout/
│ │ ├── Rating/
│ │ ├── ColorPicker/
│ │ ├── RightClickMenu/
│ │ ├── RangePicker/
│ │ ├── Navbar/
│ │ ├── FormValidation/
│ │ ├── CopyToClipboard/
│ │ ├── ClickAnimations/
│ │ ├── ThumbnailList/
│ │ ├── KeyboardShortcuts/
│ │ ├── CommentSystem/
│ │ ├── QRCode/
│ │ ├── RadioButton/
│ │ ├── Slider/
│ │ ├── ScrollAnimations/
│ │ ├── TextInput/
│ │ ├── Divider/
│ │ ├── Checkbox/
│ │ ├── DatePicker/
│ │ └── icons/
│ ├── router/ # 路由配置
│ │ └── index.js
│ ├── stores/ # Pinia 状态管理
│ │ └── counter.js
│ ├── views/ # 页面组件
│ │ ├── ProgressView.vue
│ │ ├── TabsView.vue
│ │ ├── SwitchView.vue
│ │ ├── TimelineView.vue
│ │ ├── NotificationView.vue
│ │ ├── CardView.vue
│ │ ├── InfiniteScrollView.vue
│ │ ├── BackToTopView.vue
│ │ ├── AccordionView.vue
│ │ ├── SidebarView.vue
│ │ ├── BreadcrumbsView.vue
│ │ ├── MasonryLayoutView.vue
│ │ ├── RatingView.vue
│ │ ├── ColorPickerView.vue
│ │ ├── RightClickMenuView.vue
│ │ ├── RangePickerView.vue
│ │ ├── NavbarView.vue
│ │ ├── FormValidationView.vue
│ │ ├── CopyToClipboardView.vue
│ │ ├── ClickAnimationsView.vue
│ │ ├── ThumbnailListView.vue
│ │ ├── KeyboardShortcutsView.vue
│ │ ├── CommentSystemView.vue
│ │ ├── QRCodeView.vue
│ │ ├── RadioButtonView.vue
│ │ ├── SliderView.vue
│ │ ├── ScrollAnimationsView.vue
│ │ ├── TextInputView.vue
│ │ ├── DividerView.vue
│ │ ├── CheckboxView.vue
│ │ ├── DatePickerView.vue
│ │ └── AboutView.vue
│ ├── App.vue # 根组件
│ └── main.js # 应用入口
├── public/ # 公共资源目录
├── index.html # HTML 模板
├── package.json # 项目配置
├── vite.config.js # Vite 配置
└── node_modules/ # 依赖包目录

📚think

📘组件代码

我将按照您的要求创建一个功能完善的Checkbox组件。先创建组件文件,然后提供调用示例。

🔨 在 components/Checkbox/Checkbox.vue 中:

<template><labelclass="checkbox-container":class="[sizeClass,{ 'is-disabled': disabled }]":style="checkedColor"><inputref="input"type="checkbox"class="checkbox-input":checked="isChecked":disabled="disabled":value="value"@change="handleChange"@click="$emit('click', $event)"v-bind="ariaAttributes"><span class="checkbox-inner"></span><!-- 标签内容 --><span v-if="$slots.default" class="checkbox-label"><slot /></span><span v-else-if="label" class="checkbox-label">{{ label }}</span></label>
</template><script setup>javascript">
import { computed, ref, watchEffect } from 'vue'const props = defineProps({modelValue: { type: [Boolean, Array], default: false },disabled: Boolean,value: { default: null },label: String,size: { type: String, default: 'medium' },color: String,indeterminate: Boolean
})const emit = defineEmits(['update:modelValue','change','click'
])const input = ref(null)
const sizeClass = computed(() => `size-${props.size}`)// 处理选中状态
const isChecked = computed(() => {if (Array.isArray(props.modelValue)) {return props.modelValue.includes(props.value)}return props.modelValue
})// 处理颜色样式
const checkedColor = computed(() => {if (isChecked.value && props.color) {return { '--checked-color': props.color }}return null
})// 无障碍属性
const ariaAttributes = computed(() => ({'role': 'checkbox','aria-checked': isChecked.value ? 'true' : 'false','aria-disabled': props.disabled ? 'true' : 'false'
}))const handleChange = (e) => {if (props.disabled) returnlet newValueif (Array.isArray(props.modelValue)) {newValue = [...props.modelValue]const index = newValue.indexOf(props.value)index === -1 ? newValue.push(props.value) : newValue.splice(index, 1)} else {newValue = e.target.checked}emit('update:modelValue', newValue)emit('change', newValue)
}// 处理半选状态
watchEffect(() => {if (input.value) {input.value.indeterminate = props.indeterminate}
})
</script><style scoped>
.checkbox-container {display: inline-flex;align-items: center;cursor: pointer;gap: 8px;
}.checkbox-input {position: absolute;opacity: 0;
}.checkbox-inner {width: 16px;height: 16px;border: 2px solid #ccc;border-radius: 4px;position: relative;transition: all 0.2s;
}.checkbox-inner::after {content: "";position: absolute;left: 4px;top: 1px;width: 5px;height: 10px;border: solid white;border-width: 0 2px 2px 0;transform: rotate(45deg);opacity: 0;
}.checkbox-input:checked + .checkbox-inner {background-color: var(--checked-color, #2196F3);border-color: var(--checked-color, #2196F3);
}.checkbox-input:checked + .checkbox-inner::after {opacity: 1;
}/* 大小控制 */
.size-small .checkbox-inner { width: 14px; height: 14px; }
.size-medium .checkbox-inner { width: 16px; height: 16px; }
.size-large .checkbox-inner { width: 18px; height: 18px; }/* 禁用状态 */
.is-disabled {opacity: 0.6;cursor: not-allowed;
}.checkbox-label {user-select: none;
}
</style>

📝 调用示例(在 CheckboxView.vue 中使用):

<template><!-- 示例1: 基础使用 --><Checkbox v-model="checked1" label="基础复选框" /><!-- 示例2: 带颜色和大小的 --><Checkboxv-model="checked2"label="自定义颜色"color="#ff4757"size="large"/><!-- 示例3: 禁用状态 --><Checkboxv-model="checked3"label="禁用状态"disabled/><!-- 示例4: 复选框组 --><div v-for="option in options" :key="option.value"><Checkboxv-model="selectedValues":value="option.value":label="option.label"/></div><!-- 示例5: 半选状态 --><Checkboxv-model="checked5"label="半选状态":indeterminate="true"/><!-- 示例6: 自定义插槽 --><Checkbox v-model="checked6"><span style="color: green">自定义标签内容</span></Checkbox>
</template><script setup>javascript">
import { ref } from 'vue'
import Checkbox from '@/components/Checkbox/Checkbox.vue'const checked1 = ref(false)
const checked2 = ref(true)
const checked3 = ref(false)
const checked5 = ref(false)
const checked6 = ref(false)// 复选框组示例
const options = ref([{ value: 'vue', label: 'Vue.js' },{ value: 'react', label: 'React' },{ value: 'angular', label: 'Angular' }
])
const selectedValues = ref(['vue'])
</script>

💡 补充建议:

  1. 增加焦点样式提升可访问性
  2. 添加过渡动画提升交互体验
  3. 支持表单验证集成
  4. 提供全选/反选工具方法
  5. 添加键盘导航支持(Space键切换)

这个实现方案有以下特点:

  • 支持单独使用和组使用两种模式
  • 完善的样式定制能力
  • 完整的无障碍支持
  • 灵活的插槽系统
  • 响应式尺寸控制
  • 明确的类型检查(通过Prop定义)
  • 清晰的代码结构

组件目录结构建议:

components/Checkbox/
├── Checkbox.vue       # 主组件
└── CheckboxGroup.vue  # 组容器组件(扩展用)

📚代码测试

正常

📚测试代码正常跑通,附其他基本代码

  • 添加路由
  • 页面展示入口

📘编写路由 src\router\index.js

\router\index.js

javascript">import { createRouter, createWebHistory } from 'vue-router'
import RightClickMenuView from '../views/RightClickMenuView.vue'
import RangePickerView from '../views/RangePickerView.vue'const router = createRouter({history: createWebHistory(import.meta.env.BASE_URL),routes: [{path: '/',name: 'progress',component:  () => import('../views/ProgressView.vue'),},{path: '/tabs',name: 'tabs',// route level code-splitting// this generates a separate chunk (About.[hash].js) for this route// which is lazy-loaded when the route is visited.// 标签页(Tabs)component: () => import('../views/TabsView.vue'),},{path: '/accordion',name: 'accordion',// 折叠面板(Accordion)component: () => import('../views/AccordionView.vue'),},{path: '/timeline',name: 'timeline',// 时间线(Timeline)component: () => import('../views/TimelineView.vue'),},{path: '/backToTop',name: 'backToTop',component: () => import('../views/BackToTopView.vue')},{path: '/notification',name: 'notification',component: () => import('../views/NotificationView.vue')},{path: '/card',name: 'card',component: () => import('../views/CardView.vue')},{path: '/infiniteScroll',name: 'infiniteScroll',component: () => import('../views/InfiniteScrollView.vue')},{path: '/switch',name: 'switch',component: () => import('../views/SwitchView.vue')},{path: '/sidebar',name: 'sidebar',component: () => import('../views/SidebarView.vue')},{path: '/breadcrumbs',name: 'breadcrumbs',component: () => import('../views/BreadcrumbsView.vue')},{path: '/masonryLayout',name: 'masonryLayout',component: () => import('../views/MasonryLayoutView.vue')},{path: '/rating',name: 'rating',component: () => import('../views/RatingView.vue')},{path: '/datePicker',name: 'datePicker',component: () => import('../views/DatePickerView.vue')},{path: '/colorPicker',name: 'colorPicker',component: () => import('../views/ColorPickerView.vue')},{path: '/rightClickMenu',name: 'rightClickMenu',component: RightClickMenuView},{path: '/rangePicker',name: 'rangePicker',component: () => import('../views/RangePickerView.vue')},{path: '/navbar',name: 'navbar',component: () => import('../views/NavbarView.vue')},{path: '/formValidation',name: 'formValidation',component: () => import('../views/FormValidationView.vue')},{path: '/copyToClipboard',name: 'copyToClipboard',component: () => import('../views/CopyToClipboardView.vue')},{path: '/clickAnimations',name: 'clickAnimations',component: () => import('../views/ClickAnimationsView.vue')},{path: '/thumbnailList',name: 'thumbnailList',component: () => import('../views/ThumbnailListView.vue')},{path: '/keyboardShortcuts',name: 'keyboardShortcuts',component: () => import('../views/KeyboardShortcutsView.vue')},{path: '/commentSystem',name: 'commentSystem',component: () => import('../views/CommentSystemView.vue')},{path: '/qRCode',name: 'qRCode',component: () => import('../views/QRCodeView.vue')},{path: '/radioButton',name: 'radioButton',component: () => import('../views/RadioButtonView.vue')},{path: '/slider',name: 'slider',component: () => import('../views/SliderView.vue')},{path: '/scrollAnimations',name: 'scrollAnimations',component: () => import('../views/ScrollAnimationsView.vue')},{path: '/textInputView',name: 'textInputView',component: () => import('../views/TextInputView.vue')},{path: '/divider',name: 'divider',component: () => import('../views/DividerView.vue')},{path: '/checkbox',name: 'checkbox',component: () => import('../views/CheckboxView.vue')}],
})export default router

📘编写展示入口 src\App.vue

 src\App.vue

<script setup>javascript">
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
</script><template><header><img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" /><div class="wrapper"><HelloWorld msg="You did it!" /><nav><RouterLink to="/">Progress</RouterLink><RouterLink to="/tabs">Tabs</RouterLink><RouterLink to="/accordion">Accordion</RouterLink><RouterLink to="/timeline">Timeline</RouterLink><RouterLink to="/backToTop">BackToTop</RouterLink><RouterLink to="/notification">Notification</RouterLink><RouterLink to="/card">Card</RouterLink><RouterLink to="/infiniteScroll">InfiniteScroll</RouterLink><RouterLink to="/switch">Switch</RouterLink><RouterLink to="/sidebar">Sidebar</RouterLink><RouterLink to="/breadcrumbs">Breadcrumbs</RouterLink><RouterLink to="/masonryLayout">MasonryLayout</RouterLink><RouterLink to="/rating">Rating</RouterLink><RouterLink to="/datePicker">DatePicker</RouterLink><RouterLink to="/colorPicker">ColorPicker</RouterLink><RouterLink to="/rightClickMenu">RightClickMenu</RouterLink><RouterLink to="/rangePicker">RangePicker</RouterLink><RouterLink to="/navbar">Navbar</RouterLink><RouterLink to="/formValidation">FormValidation</RouterLink><RouterLink to="/copyToClipboard">CopyToClipboard</RouterLink><RouterLink to="/clickAnimations">ClickAnimations</RouterLink><RouterLink to="/thumbnailList">ThumbnailList</RouterLink><RouterLink to="/keyboardShortcuts">KeyboardShortcuts</RouterLink><RouterLink to="/commentSystem">CommentSystem</RouterLink><RouterLink to="/qRCode">QRCode</RouterLink><RouterLink to="/radioButton">RadioButton</RouterLink><RouterLink to="/slider">Slider</RouterLink><RouterLink to="/scrollAnimations">ScrollAnimations</RouterLink><RouterLink to="/textInputView">TextInput</RouterLink><RouterLink to="/divider">Divider</RouterLink><RouterLink to="/checkbox">Checkbox</RouterLink></nav></div></header><RouterView />
</template><style scoped>
header {line-height: 1.5;max-height: 100vh;
}.logo {display: block;margin: 0 auto 2rem;
}nav {width: 100%;font-size: 12px;text-align: center;margin-top: 2rem;
}nav a.router-link-exact-active {color: var(--color-text);
}nav a.router-link-exact-active:hover {background-color: transparent;
}nav a {display: inline-block;padding: 0 1rem;border-left: 1px solid var(--color-border);
}nav a:first-of-type {border: 0;
}@media (min-width: 1024px) {header {display: flex;place-items: center;padding-right: calc(var(--section-gap) / 2);}.logo {margin: 0 2rem 0 0;}header .wrapper {display: flex;place-items: flex-start;flex-wrap: wrap;}nav {text-align: left;margin-left: -1rem;font-size: 1rem;padding: 1rem 0;margin-top: 1rem;}
}
</style>

📚页面效果

<a class=DeepSeek 助力 Vue 开发:打造丝滑的 复选框(Checkbox)页面效果" />

📚相关文章

 

———— 相 关 文 章 ————

 

  1. DeepSeek 助力 Vue 开发:打造丝滑的右键菜单(RightClickMenu)https://blog.csdn.net/qq_33650655/article/details/145706658

  2. DeepSeek 助力 Vue 开发:打造丝滑的范围选择器(Range Picker)https://blog.csdn.net/qq_33650655/article/details/145713572

  3. DeepSeek 助力 Vue 开发:打造丝滑的导航栏(Navbar)https://blog.csdn.net/qq_33650655/article/details/145732421

  4. DeepSeek 助力 Vue 开发:打造丝滑的表单验证(Form Validation)https://blog.csdn.net/qq_33650655/article/details/145735582

  5. DeepSeek 助力 Vue 开发:打造丝滑的复制到剪贴板(Copy to Clipboard)https://blog.csdn.net/qq_33650655/article/details/145739569

  6. DeepSeek 助力 Vue 开发:打造丝滑的点击动画(Click Animations)https://blog.csdn.net/qq_33650655/article/details/145766184

  7. DeepSeek 助力 Vue 开发:打造丝滑的缩略图列表(Thumbnail List)https://blog.csdn.net/qq_33650655/article/details/145776679

  8. DeepSeek 助力 Vue 开发:打造丝滑的 键盘快捷键(Keyboard Shortcuts) https://blog.csdn.net/qq_33650655/article/details/145780227

  9. DeepSeek 助力 Vue 开发:打造丝滑的评论系统(Comment System)https://blog.csdn.net/qq_33650655/article/details/145781104

  10. DeepSeek 助力 Vue 开发:打造丝滑的二维码生成(QR Code)https://blog.csdn.net/qq_33650655/article/details/145797928

  11. DeepSeek 助力 Vue 开发:打造丝滑的单选按钮(Radio Button)https://blog.csdn.net/qq_33650655/article/details/145810620

  12. DeepSeek 助力 Vue 开发:打造丝滑的滑块(Slider)https://blog.csdn.net/qq_33650655/article/details/145817161

  13. DeepSeek 助力 Vue 开发:打造丝滑的滚动动画(Scroll Animations)https://blog.csdn.net/qq_33650655/article/details/145818571

  14. DeepSeek 助力 Vue 开发:打造丝滑的文本输入框(Text Input)https://blog.csdn.net/qq_33650655/article/details/145837003

  15. DeepSeek 助力 Vue 开发:打造丝滑的分割线(Divider)https://blog.csdn.net/qq_33650655/article/details/145849100

到此这篇文章就介绍到这了,更多精彩内容请关注本人以前的文章或继续浏览下面的文章,创作不易,如果能帮助到大家,希望大家多多支持宝码香车~💕,若转载本文,一定注明本文链接。


整理不易,点赞关注宝码香车

更多专栏订阅推荐:
👍 html+css+js 绚丽效果
💕 vue
✈️ Electron
⭐️ js
📝 字符串
✍️ 时间对象(Date())操作


http://www.ppmy.cn/news/1575091.html

相关文章

Arm 将自己制造芯片

众所周知&#xff0c;几乎任何目前市面上的手机芯片都是arm公司设计的&#xff0c;这家公司只设计CPU&#xff0c;由苹果、三星、英伟达等厂家再自行生产移动端CPU。 2025年这家英国芯片设计巨头宣布&#xff1a; Arm 将不再只是自己设计芯片&#xff0c;它将自己制造芯片&…

职场发展-遇到以下情况请直接准备后手吧

本文纯来自个人经历&#xff0c;大家可以当个笑话看&#xff0c;但是现实有时候就是这样 1.开始抓细节&#xff0c;作为一个工厂&#xff0c;突然开始抓考勤&#xff0c;开始计较一些之前从来没管过的的事&#xff0c;你就得心思心思是不是要裁员了&#xff0c;也就可以找后手…

目标检测中单阶段检测模型与双阶段检测模型详细对比与说明

《------往期经典推荐------》 一、AI应用软件开发实战专栏【链接】 项目名称项目名称1.【人脸识别与管理系统开发】2.【车牌识别与自动收费管理系统开发】3.【手势识别系统开发】4.【人脸面部活体检测系统开发】5.【图片风格快速迁移软件开发】6.【人脸表表情识别系统】7.【…

为什么要将PDF转换为CSV?CSV是Excel吗?

在企业和数据管理的日常工作中&#xff0c;PDF文件和CSV文件承担着各自的任务。PDF通常用于传输和展示静态的文档&#xff0c;而CSV因其简洁、易操作的特性&#xff0c;广泛应用于数据存储和交换。如果需要从PDF中提取、分析或处理数据&#xff0c;转换为CSV格式可能是一个高效…

LabVIEW 中 codeGenEngine.llb 工具库

codeGenEngine.llb 是 LabVIEW 2019 安装目录下C:\Program Files (x86)\National Instruments\LabVIEW 2019\vi.lib\Platform\路径下的工具库&#xff0c;主要用于代码生成相关的操作&#xff0c;帮助开发者在 LabVIEW 项目中便捷地实现自动化代码生成任务&#xff0c;提高开发…

计算机网络笔记再战——理解几个经典的协议7——HTTP1

目录 前言 所以&#xff0c;啥是HTTP HTTP也是有多个版本的 URI URI的格式 绝对的URI 所以&#xff0c;HTTP... HTTP不保存状态 HTTP的请求方法 Cookie小论 参考资料 前言 笔者继续推进这个部分的内容是出于对后续笔者打算使用Web作点协作的应用程序所需要的。这里…

【FAQ】HarmonyOS SDK 闭源开放能力 —Ads Kit(2)

1.问题描述&#xff1a; 应用需要获取一个唯一不变的标识生成deviceID。 当前通过OAID生成&#xff0c;但每次重启PC样机&#xff0c;获取到的OAID都会变化&#xff0c;无法满足唯一不变的需求。 解决方案&#xff1a; 需要获取一个唯一不变的标识&#xff0c;可以尝试使用O…

34.Java 阻塞队列(阻塞队列架构、阻塞队列分类、阻塞队列核心方法)

一、阻塞队列概述 java.util.concurrent 包下的 BlockingQueue 接口很好的解决了多线程中如何高效安全传输数据的问题&#xff0c;可以使用这些高效并且线程安全的队列类快速搭建高质量的多线程程序 阻塞队列通过一个共享的队列&#xff0c;使得数据由队列的一端输入&#xff…