Tailwind CSS 实战:表单设计与验证实现

在 Web 开发中,表单就像是一位尽职的接待员,负责收集和验证用户的输入信息。记得在一个企业级项目中,我们通过重新设计表单交互流程,将表单的完成率提升了 42%。今天,我想和大家分享如何使用 Tailwind CSS 打造一个既美观又实用的表单系统。

设计理念

设计表单就像是在设计一次愉快的对话。一个好的表单应该像一个耐心的助手,引导用户一步步完成信息填写,并在用户遇到问题时及时提供帮助。在开始编码之前,我们需要考虑以下几个关键点:

  1. 布局要清晰,让用户一目了然地知道需要填写什么
  2. 交互要友好,在用户输入过程中提供即时反馈
  3. 验证要智能,在适当的时机进行数据校验
  4. 错误提示要明确,帮助用户快速定位和解决问题

基础表单组件

首先,让我们从一些常用的表单组件开始:

<!-- 文本输入框 -->
<div class="space-y-1"><label for="username" class="block text-sm font-medium text-gray-700">用户名</label><div class="relative rounded-md shadow-sm"><input type="text" name="username" id="username" class="block w-full pr-10 border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" placeholder="请输入用户名"required><!-- 验证状态图标 --><div class="absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"><svg class="h-5 w-5 text-green-500 hidden success-icon" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" /></svg><svg class="h-5 w-5 text-red-500 hidden error-icon" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" /></svg></div></div><!-- 错误提示 --><p class="mt-1 text-sm text-red-600 hidden error-message" id="username-error"></p>
</div><!-- 密码输入框 -->
<div class="space-y-1"><label for="password" class="block text-sm font-medium text-gray-700">密码</label><div class="relative rounded-md shadow-sm"><input type="password" name="password" id="password" class="block w-full pr-10 border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" placeholder="请输入密码"required><!-- 密码可见性切换 --><button type="button" class="absolute inset-y-0 right-0 pr-3 flex items-center"οnclick="togglePasswordVisibility(this)"><svg class="h-5 w-5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" /></svg></button></div><!-- 密码强度指示器 --><div class="mt-1"><div class="h-1 w-full bg-gray-200 rounded-full overflow-hidden"><div class="h-full bg-gray-400 transition-all duration-300" id="password-strength"></div></div><p class="mt-1 text-xs text-gray-500">密码强度: <span id="strength-text">弱</span></p></div>
</div><!-- 下拉选择框 -->
<div class="space-y-1"><label for="country" class="block text-sm font-medium text-gray-700">国家/地区</label><div class="relative"><select id="country" name="country" class="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"><option value="">请选择</option><option value="CN">中国</option><option value="US">美国</option><option value="JP">日本</option><option value="GB">英国</option></select><div class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none"><svg class="h-4 w-4 text-gray-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg></div></div>
</div><!-- 复选框组 -->
<div class="space-y-2"><label class="block text-sm font-medium text-gray-700">兴趣爱好</label><div class="space-y-2"><label class="inline-flex items-center"><input type="checkbox" class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="interests" value="reading"><span class="ml-2 text-sm text-gray-600">阅读</span></label><label class="inline-flex items-center"><input type="checkbox" class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="interests" value="music"><span class="ml-2 text-sm text-gray-600">音乐</span></label><label class="inline-flex items-center"><input type="checkbox" class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="interests" value="sports"><span class="ml-2 text-sm text-gray-600">运动</span></label></div>
</div><!-- 单选按钮组 -->
<div class="space-y-2"><label class="block text-sm font-medium text-gray-700">性别</label><div class="space-x-4"><label class="inline-flex items-center"><input type="radio" class="form-radio border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="gender" value="male"><span class="ml-2 text-sm text-gray-600">男</span></label><label class="inline-flex items-center"><input type="radio" class="form-radio border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="gender" value="female"><span class="ml-2 text-sm text-gray-600">女</span></label></div>
</div><!-- 文件上传 -->
<div class="space-y-1"><label class="block text-sm font-medium text-gray-700">头像上传</label><div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md"><div class="space-y-1 text-center"><svg class="mx-auto h-12 w-12 text-gray-400" stroke="currentColor" fill="none" viewBox="0 0 48 48"><path d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg><div class="flex text-sm text-gray-600"><label for="file-upload" class="relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"><span>上传文件</span><input id="file-upload" name="file-upload" type="file" class="sr-only" accept="image/*"></label><p class="pl-1">或拖拽文件到这里</p></div><p class="text-xs text-gray-500">PNG, JPG, GIF 最大 2MB</p></div></div>
</div>

表单验证实现

接下来,我们来实现表单的验证逻辑:

// 表单验证类
class FormValidator {constructor(form) {this.form = form;this.validators = {username: this.validateUsername.bind(this),password: this.validatePassword.bind(this),email: this.validateEmail.bind(this),phone: this.validatePhone.bind(this)};this.init();}init() {// 绑定输入事件this.form.querySelectorAll('input[data-validate]').forEach(input => {input.addEventListener('input', () => this.validateField(input));input.addEventListener('blur', () => this.validateField(input));});// 绑定表单提交事件this.form.addEventListener('submit', (e) => {e.preventDefault();if (this.validateAll()) {this.submitForm();}});}// 验证单个字段validateField(input) {const field = input.name;const value = input.value;const validator = this.validators[field];if (validator) {const result = validator(value);this.updateFieldStatus(input, result);return result.isValid;}return true;}// 验证所有字段validateAll() {let isValid = true;this.form.querySelectorAll('input[data-validate]').forEach(input => {if (!this.validateField(input)) {isValid = false;}});return isValid;}// 更新字段状态updateFieldStatus(input, result) {const container = input.closest('.form-field');const errorMessage = container.querySelector('.error-message');const successIcon = container.querySelector('.success-icon');const errorIcon = container.querySelector('.error-icon');if (result.isValid) {input.classList.remove('border-red-500');input.classList.add('border-green-500');errorMessage.classList.add('hidden');successIcon.classList.remove('hidden');errorIcon.classList.add('hidden');} else {input.classList.remove('border-green-500');input.classList.add('border-red-500');errorMessage.textContent = result.message;errorMessage.classList.remove('hidden');successIcon.classList.add('hidden');errorIcon.classList.remove('hidden');}}// 验证规则validateUsername(value) {if (!value) {return {isValid: false,message: '用户名不能为空'};}if (value.length < 3) {return {isValid: false,message: '用户名至少需要3个字符'};}return {isValid: true};}validatePassword(value) {const hasNumber = /\d/.test(value);const hasLetter = /[a-zA-Z]/.test(value);const hasSpecial = /[!@#$%^&*]/.test(value);if (!value) {return {isValid: false,message: '密码不能为空'};}if (value.length < 8) {return {isValid: false,message: '密码至少需要8个字符'};}if (!(hasNumber && hasLetter && hasSpecial)) {return {isValid: false,message: '密码需要包含数字、字母和特殊字符'};}return {isValid: true};}validateEmail(value) {const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;if (!value) {return {isValid: false,message: '邮箱不能为空'};}if (!emailRegex.test(value)) {return {isValid: false,message: '请输入有效的邮箱地址'};}return {isValid: true};}validatePhone(value) {const phoneRegex = /^1[3-9]\d{9}$/;if (!value) {return {isValid: false,message: '手机号不能为空'};}if (!phoneRegex.test(value)) {return {isValid: false,message: '请输入有效的手机号'};}return {isValid: true};}// 提交表单async submitForm() {try {const formData = new FormData(this.form);const response = await fetch(this.form.action, {method: 'POST',body: formData});if (response.ok) {this.showSuccess();} else {this.showError();}} catch (error) {this.showError();}}// 显示成功提示showSuccess() {const toast = document.createElement('div');toast.className = 'fixed bottom-4 right-4 bg-green-500 text-white px-6 py-3 rounded-lg shadow-lg transform transition-all duration-300';toast.textContent = '提交成功!';document.body.appendChild(toast);setTimeout(() => {toast.remove();}, 3000);}// 显示错误提示showError() {const toast = document.createElement('div');toast.className = 'fixed bottom-4 right-4 bg-red-500 text-white px-6 py-3 rounded-lg shadow-lg transform transition-all duration-300';toast.textContent = '提交失败,请重试';document.body.appendChild(toast);setTimeout(() => {toast.remove();}, 3000);}
}

密码强度检测

为了提升用户体验,我们可以添加实时的密码强度检测:

class PasswordStrengthMeter {constructor(input, indicator, text) {this.input = input;this.indicator = indicator;this.text = text;this.init();}init() {this.input.addEventListener('input', () => {const strength = this.calculateStrength(this.input.value);this.updateUI(strength);});}calculateStrength(password) {let score = 0;// 长度检查if (password.length >= 8) score += 1;if (password.length >= 12) score += 1;// 复杂度检查if (/[0-9]/.test(password)) score += 1;if (/[a-z]/.test(password)) score += 1;if (/[A-Z]/.test(password)) score += 1;if (/[^0-9a-zA-Z]/.test(password)) score += 1;// 重复字符检查if (!/(.)\1{2,}/.test(password)) score += 1;return score;}updateUI(score) {let strength, color;if (score <= 2) {strength = '弱';color = 'bg-red-500';} else if (score <= 4) {strength = '中';color = 'bg-yellow-500';} else {strength = '强';color = 'bg-green-500';}// 更新进度条this.indicator.className = `h-full transition-all duration-300 ${color}`;this.indicator.style.width = `${(score / 7) * 100}%`;// 更新文本this.text.textContent = strength;}
}

文件上传预览

对于文件上传,我们可以添加拖拽上传和预览功能:

class FileUploader {constructor(container) {this.container = container;this.input = container.querySelector('input[type="file"]');this.preview = container.querySelector('.preview');this.dropZone = container.querySelector('.drop-zone');this.init();}init() {// 点击上传this.input.addEventListener('change', (e) => {this.handleFiles(e.target.files);});// 拖拽上传this.dropZone.addEventListener('dragover', (e) => {e.preventDefault();this.dropZone.classList.add('border-indigo-500');});this.dropZone.addEventListener('dragleave', () => {this.dropZone.classList.remove('border-indigo-500');});this.dropZone.addEventListener('drop', (e) => {e.preventDefault();this.dropZone.classList.remove('border-indigo-500');this.handleFiles(e.dataTransfer.files);});}handleFiles(files) {Array.from(files).forEach(file => {// 检查文件类型if (!file.type.startsWith('image/')) {this.showError('请上传图片文件');return;}// 检查文件大小if (file.size > 2 * 1024 * 1024) {this.showError('文件大小不能超过2MB');return;}// 创建预览const reader = new FileReader();reader.onload = (e) => {this.createPreview(e.target.result, file.name);};reader.readAsDataURL(file);});}createPreview(src, name) {const preview = document.createElement('div');preview.className = 'relative group';preview.innerHTML = `<img src="${src}" alt="${name}" class="w-20 h-20 object-cover rounded-lg"><button type="button" class="absolute top-0 right-0 -mt-2 -mr-2 bg-red-500 text-white rounded-full p-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200"><svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /></svg></button>`;// 删除预览preview.querySelector('button').addEventListener('click', () => {preview.remove();this.input.value = '';});this.preview.appendChild(preview);}showError(message) {const error = document.createElement('div');error.className = 'text-sm text-red-500 mt-1';error.textContent = message;this.container.appendChild(error);setTimeout(() => {error.remove();}, 3000);}
}

动态表单字段

有时我们需要动态添加或删除表单字段:

class DynamicFields {constructor(container) {this.container = container;this.template = container.querySelector('.field-template');this.fieldsList = container.querySelector('.fields-list');this.addButton = container.querySelector('.add-field');this.init();}init() {this.addButton.addEventListener('click', () => {this.addField();});}addField() {const field = this.template.cloneNode(true);field.classList.remove('hidden', 'field-template');// 更新字段索引const index = this.fieldsList.children.length;field.querySelectorAll('[name]').forEach(input => {input.name = input.name.replace('__INDEX__', index);});// 添加删除按钮const deleteButton = field.querySelector('.delete-field');deleteButton.addEventListener('click', () => {field.remove();this.updateIndexes();});this.fieldsList.appendChild(field);}updateIndexes() {Array.from(this.fieldsList.children).forEach((field, index) => {field.querySelectorAll('[name]').forEach(input => {input.name = input.name.replace(/\d+/, index);});});}
}

表单状态管理

为了更好地管理表单状态,我们可以使用发布订阅模式:

class FormState {constructor() {this.subscribers = [];this.state = {};}subscribe(callback) {this.subscribers.push(callback);return () => {this.subscribers = this.subscribers.filter(cb => cb !== callback);};}notify() {this.subscribers.forEach(callback => callback(this.state));}setState(newState) {this.state = { ...this.state, ...newState };this.notify();}getState() {return this.state;}
}// 使用示例
const formState = new FormState();// 订阅状态变化
formState.subscribe((state) => {// 更新UIObject.entries(state).forEach(([field, value]) => {const input = document.querySelector(`[name="${field}"]`);if (input) {input.value = value;}});
});// 监听输入变化
document.querySelectorAll('input, select, textarea').forEach(input => {input.addEventListener('input', (e) => {formState.setState({[e.target.name]: e.target.value});});
});

写在最后

通过这篇文章,我们详细探讨了如何使用 Tailwind CSS 构建一个现代化的表单系统。从基础组件到验证逻辑,从文件上传到状态管理,我们不仅关注了视觉效果,更注重了用户体验和代码质量。

记住,一个优秀的表单就像一个称职的接待员,需要耐心地引导用户完成信息填写,并在遇到问题时及时提供帮助。在实际开发中,我们要始终以用户需求为中心,在易用性和安全性之间找到最佳平衡点。

如果觉得这篇文章对你有帮助,别忘了点个赞 👍

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/64851.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

信息系统项目管理师——第8章章 项目整合管理 笔记

8 项目整合管理&#xff08;最后反过来看&#xff09; 项目整合过程&#xff1a;①制定项目章程&#xff08;启动过程&#xff09;、②制订项目管理计划&#xff08;规划过程&#xff09;、③指导和管理项目工作、管理项目知识&#xff08;执行过程&#xff09;、④监控项目工…

MLP、CNN、Transformer 的区别解析

亲爱的小伙伴们&#x1f618;&#xff0c;在求知的漫漫旅途中&#xff0c;若你对深度学习的奥秘、Java 与 Python 的奇妙世界&#xff0c;亦或是读研论文的撰写攻略有所探寻&#x1f9d0;&#xff0c;那不妨给我一个小小的关注吧&#x1f970;。我会精心筹备&#xff0c;在未来…

WebRTC线程的启动与运行

WebRTC线程运行的基本逻辑&#xff1a; while(true) {…Get(&msg, …);…Dispatch(&msg);… }Dispatch(Message *pmsg) {…pmsg->handler->OnMessage(pmsg);… }在执行函数内部&#xff0c;就是一个while死循环&#xff0c;只做两件事&#xff0c;从队列里Get取…

CSS 学习之 padding 与图形绘制

padding 属性和 background-clip 属性配合&#xff0c;可以在有限的标签下实现一些 CSS 图形绘制效果&#xff0c;我这里举两个小例子&#xff0c;重在展示可行性。 例 1:不使用伪元素&#xff0c;仅一层标签实现大队长的“三道杠”分类图标效果。此效果在移动端比较常见&…

yolov5核查数据标注漏报和误报

提示&#xff1a;文章写完后&#xff0c;目录可以自动生成&#xff0c;如何生成可参考右边的帮助文档 文章目录 前言一、误报二、漏报三、源码总结 前言 本文主要用于记录数据标注和模型预测之间的漏报和误报思想及其源码 提示&#xff1a;以下是本篇文章正文内容&#xff0c;…

UnityRenderStreaming使用记录(四)

测试把UnityRenderStreaming部署在docker&#xff0c;剧透一下&#xff0c;嘎了…… 当然webserver运行的妥妥的 那么打包出的程序运行log Mono path[0] /home/unity/Broadcast/Broadcast_Data/Managed Mono config path /home/unity/Broadcast/Broadcast_Data/MonoBleedingE…

salesforce addMonths()的问题

如果使用 Salesforce 的 addMonths(1) 方法&#xff0c;将 1月30日 或 1月31日 加一个月&#xff0c;都会得到 2月28日&#xff08;或 2月29日&#xff0c;如果是闰年&#xff09;。这是因为 Salesforce 的 addMonths 方法在跨月份时会自动调整日期&#xff0c;确保结果是有效日…

3. C语言 数据类型

本章目录&#xff1a; 前言&#xff1a;C语言中的数据类型分类1. 基本数据类型1.1 整数类型1.2 浮点类型1.3 字符型常量1.4 字符串常量 2. 枚举类型3. void 类型void类型的使用示例&#xff1a; 4. 类型转换4.1 隐式类型转换4.2 显式类型转换类型转换的注意事项 5. 小结 前言&a…

JUnit注解,枚举

一、JUnit注解&#xff08;Annotations&#xff09; JUnit 是 Java 中用于编写和运行单元测试的框架。JUnit 提供了许多注解&#xff0c;用于控制测试的执行顺序、测试生命周期、断言结果等。以下是一些常用的 JUnit 注解及其作用&#xff1a; 1. Test 用于标记一个方法是测…

富芮坤FR800X系列之软件开发工具链(如IDE、编译器、调试器等)

文章目录 一、IDE&#xff08;集成开发环境&#xff09;二、编译器三、调试器四、其他辅助工具五、小结 FR800x系列作为一款低功耗蓝牙芯片&#xff0c;其软件开发工具链对于开发者来说至关重要。以下是对FR800x软件开发工具链的详细介绍&#xff0c;包括IDE&#xff08;集成开…

数据赋能电商:API如何助力品牌成长

在数字时代&#xff0c;数据已成为电商品牌发展的核心驱动力。API&#xff08;应用程序编程接口&#xff09;作为数据交互的桥梁&#xff0c;不仅促进了数据的高效流通&#xff0c;更为电商品牌带来了前所未有的增长机遇。本文将深入探讨API如何助力电商品牌实现数据赋能&#…

「Java 数据结构全面解读」:从基础到进阶的实战指南

「Java 数据结构全面解读」&#xff1a;从基础到进阶的实战指南 数据结构是程序设计中的核心部分&#xff0c;用于组织和管理数据。Java 提供了丰富的集合框架和工具类&#xff0c;涵盖了常见的数据结构如数组、链表、栈、队列和树等。本文将系统性地介绍这些数据结构的概念、…

LeetCode - 初级算法 数组(旋转数组)

旋转数组 这篇文章讨论如何通过编程实现数组元素的旋转操作。 免责声明:本文来源于个人知识与公开资料,仅用于学术交流。 描述 给定一个整数数组 nums,将数组中的元素向右轮转 k 个位置,其中 k 是非负数。 示例: 输入: nums = [1,2,3,

c#集合详解-Dictionary、List、Queue、Stack等

目录 一&#xff0c;非泛型集合 1&#xff0c;ArrayList &#xff08;1&#xff09;创建和初始化ArrayList() &#xff08;2&#xff09;常用方法 ①Add(value) ②AddRange(value) ③Insert(index,value) ④Remove(value) ⑤RemoveAt(index) ⑥clear() ⑦Contains(v…

记一次网闸部署经历

1.在成功获取某大厂伟思网闸设备&#xff0c;并与客户就现有网络架构&#xff08;包括防火墙与交换机&#xff09;进行了详尽的沟通与评估后&#xff0c;我们团队精心构思并提出了一个创新的实施方案——采用透明网桥模式。这一模式以其独特的优势&#xff0c;即无需对客户现有…

SpringCloud(一)--SpringCloud简介

一. 引言 ​ 在微服务架构日益盛行的今天&#xff0c;Spring Cloud凭借其简单易用、功能强大的特性&#xff0c;成为了众多开发者的首选。本文仅为学习所用&#xff0c;联系侵删。 二. SpringCloud概述 2.1 定义 ​ Spring Cloud是一系列框架的有序集合&#xff0c;它巧妙地…

SQLALchemy如何将SQL语句编译为特定数据库方言

最近在一个使用fastapitortoise-orm的项目中&#xff0c;需要将orm的语句编译成特定数据库方言&#xff0c;但是查询了官方文档及一些资料却找不到合适的方法论&#x1f614;&#xff0c;于是乎我就把目光放到了sqlalchemy身上&#xff0c;东找西找给我找着了。话不多说&#x…

庐山派K230学习日记2 MicroPython基础

MicroPython文档&#xff1a; https://docs.micropython.org/ MicroPython是编程语言 Python3 的精简高效实现&#xff0c;语法和 Python3 保持一致&#xff0c;但只实现了 Python 标准库的一小部分&#xff0c;并且经过优化&#xff0c;适用于物联网 (IoT)、消费电子和嵌入式…

《计算机组成及汇编语言原理》阅读笔记:p177-p177

《计算机组成及汇编语言原理》学习第 13 天&#xff0c;p177-p177 总结&#xff0c;总计 1 页。 一、技术总结 1.real mode A programming model where the program has access to the entire capability of the machine, bypassing security and memory management. Useful…

2000-2020年各省财政一般预算支出面板数据

2000-2020年各省财政一般预算支出面板数据 1、时间&#xff1a;2000-2020年 2、来源&#xff1a;国家统计局 3、指标&#xff1a;年份、省份、地方财政一般预算支出 4、范围&#xff1a;31省 指标解释&#xff1a;地方财政一般预算支出‌是指地方ZF根据预算安排&#xff0…