<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>一个小阿康</title><link>https://cykcyk.top/</link><description>阿小康的个人日志，总结，记录</description><item><title>经验】谷歌翻译不能使用的解决方法</title><link>https://cykcyk.top/?id=12</link><description>&lt;article class=&quot;baidu_pl&quot; style=&quot;box-sizing: border-box; outline: 0px; position: relative; padding-top: 16px; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: common-ligatures; text-wrap: wrap; user-select: auto !important;&quot;&gt;&lt;div id=&quot;article_content&quot; class=&quot;article_content clearfix&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;div id=&quot;content_views&quot; class=&quot;markdown_views prism-atom-one-dark&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; font-variant-ligatures: no-common-ligatures; font-synthesis-style: auto; overflow-wrap: break-word; position: relative; min-height: 70px; word-break: break-word !important; font-size: 16px !important;&quot;&gt;&lt;h2 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a href=&quot;https://so.csdn.net/so/search?q=%E8%B0%B7%E6%AD%8C%E7%BF%BB%E8%AF%91&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E8%B0%B7%E6%AD%8C%E7%BF%BB%E8%AF%91&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;谷歌翻译\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;谷歌翻译&quot; data-pretit=&quot;谷歌翻译&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; font-weight: normal; text-decoration-line: none; cursor: pointer; background-image: url(&amp;quot;../img/iconHighlight.svg&amp;quot;); background-position: right top; background-size: 12px 14px; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(252, 85, 49); font-synthesis-style: auto; overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot; https://uj.ci/5m4.jpg&quot;/&gt;&lt;img src=&quot;https://cykcyk.top/zb_users/upload/2024/05/202405311717171112787089.jpg&quot; alt=&quot;2.jpg&quot;/&gt;谷歌翻译&lt;/a&gt;已经于2022年9月末停止了中国区的服务&lt;/h2&gt;&lt;h2 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;1_1&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;1、谷歌翻译不能使用原因&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;谷歌翻译无法使用，对此，谷歌回应解释是，谷歌翻译使用率过低，所以选择停止服务。网上也有说法，指出根本原因为，提供API接口的googleapis被墙。这导致js文件和字体资源无法加载，官方懒得进行修复，所以干脆停掉了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;据CSDN消息，搜索巨头谷歌旗下网页翻译工具谷歌翻译停止了中国区服务，现在访问 translate.google.cn 网页会指向谷歌香港站，此做法与此前&lt;a href=&quot;https://so.csdn.net/so/search?q=%E8%B0%B7%E6%AD%8C%E6%90%9C%E7%B4%A2&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E8%B0%B7%E6%AD%8C%E6%90%9C%E7%B4%A2&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;谷歌搜索\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;谷歌搜索&quot; data-pretit=&quot;谷歌搜索&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background-image: url(&amp;quot;../img/iconHighlight.svg&amp;quot;); background-position: right top; background-size: 12px 14px; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(252, 85, 49); font-synthesis-style: auto; overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;谷歌搜索&lt;/a&gt;、谷歌地图等功能退出中国大陆时一致。早在 2010 年谷歌宣布退出中国之后，仅仅保留了谷歌翻译和谷歌地图两款服务。2020 年 2 月 3 日起，谷歌地图在国内停止服务，现在，最后的谷歌翻译服务也关闭了。据了解，日前有不少用户在 Reddit 网站上反馈谷歌翻译国内无法正常使用的情况，随后谷歌发言人通过电子邮件回复外媒 TechCrunch，承认谷歌翻译服务在中国停止提供，并表明原因是“使用率太低”。&lt;/p&gt;&lt;h2 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;2_6&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2、解决方法&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;首先需要可以登录www.google.com浏览器&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;然后设置hosts文件，设置步骤如下：&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;21_hosts_9&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.1 找到hosts文件&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/452c082bbf784e67826c405d1e67fc06.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; font-synthesis-style: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;22_hosts_11&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.2 修改hosts文件权限&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;鼠标右键hosts文件-属性-安全-选择自己电脑的用户名-编辑-点击完全控制(或把写入权限打勾)-再修改hosts文件内容：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/9df999ba89224451a11996f2256ccd80.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; font-synthesis-style: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t5&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;23_hosts_15&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.3 打开hosts&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/e53f8aa8852c4b3baf62098f3ea9960c.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; font-synthesis-style: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t6&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;24_hosts_17&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.4 编辑hosts&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;在hosts文件最下方加入以下内容，点击保存：&lt;/p&gt;&lt;pre data-index=&quot;0&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; overflow: auto hidden; border: none; line-height: 22px; color: rgb(0, 0, 0); max-height: unset; font-synthesis-style: auto; overflow-wrap: break-word; background-color: rgb(40, 44, 52);&quot;&gt;&lt;span style=&quot;color: #FFFFFF;&quot;&gt;#Google Translate&lt;br/&gt;142.250.13.90 translate.google.com&lt;br/&gt;142.250.13.90 translate.googleapis.com123&lt;/span&gt;&lt;br/&gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;注意这个IP经常变，下载下面的工具，扫描google IP工具，更换IP即可&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;https://github.com/Ponderfly/GoogleTranslateIpCheck&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t7&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;25_DNS_25&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.5 刷新DNS&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;关闭google浏览器，打开控制台（win+R），输入 ipconfig /flushdns，点击确定。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/1d37638e169e4c3a8346e35acad68fde.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; font-synthesis-style: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t8&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;26_google_28&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.6 重新打开google浏览器&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/0c805fdf622f4e23bb14a4ef2a928869.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; font-synthesis-style: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h2 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t9&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;320230614_30&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;3、补充(2023-06-14)&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;在ubuntu上使用GoogleTranslateIpCheck扫描google IP，&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;1）下载地址：https://github.com/Ponderfly/GoogleTranslateIpCheck&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/22b2222eb81e458bb7e782a7ce86294d.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; font-synthesis-style: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;2）安装&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;解压后，添加执行权限&lt;/p&gt;&lt;pre data-index=&quot;1&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; overflow: auto hidden; border: none; line-height: 22px; color: rgb(0, 0, 0); max-height: unset; font-synthesis-style: auto; overflow-wrap: break-word; background-color: rgb(40, 44, 52);&quot;&gt;&lt;span style=&quot;color: #FFFFFF;&quot;&gt;unzip -x GoogleTranslateIpCheck-linux-x64.zip &lt;br/&gt;chmod +x GoogleTranslateIpCheck12&lt;/span&gt;&lt;br/&gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;3）运行&lt;/p&gt;&lt;pre data-index=&quot;2&quot; class=&quot;prettyprint set-code-show&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; overflow: auto hidden; border: none; line-height: 22px; color: rgb(0, 0, 0); max-height: unset; font-synthesis-style: auto; overflow-wrap: break-word; background-color: rgb(40, 44, 52);&quot;&gt;&lt;span style=&quot;color: #FFFFFF;&quot;&gt;$ ./GoogleTranslateIpCheck &lt;br/&gt;如果支持IPv6推荐优先使用,使用参数 -6 启动&lt;br/&gt;找到 1 条IP&lt;br/&gt;&lt;br/&gt;开始检测IP响应时间142.250.1.90: 响应时间 246 ms&lt;br/&gt;&lt;br/&gt;检测IP完毕,按照响应时间排序结果142.250.1.90: 响应时间 246 ms&lt;br/&gt;最佳IP为: 142.250.1.90 响应时间 246 ms&lt;br/&gt;设置Host文件需要管理员权限(Mac,Linux使用sudo运行),可能会被安全软件拦截,建议手工复制以下文本到Host文件&lt;br/&gt;Host文件路径为 /etc/hosts &lt;br/&gt;&lt;br/&gt;142.250.1.90 translate.googleapis.com142.250.1.90 translate.google.com1234567891011121314151617&lt;br/&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/article&gt;&lt;p&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: common-ligatures; text-wrap: wrap; user-select: auto !important;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;blog-content-box&quot; id=&quot;recommendSwitch&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px 24px 16px; position: relative; background: rgb(255, 255, 255); border-radius: 2px 2px 0px 0px; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: common-ligatures; text-wrap: wrap; text-align: right; user-select: auto !important;&quot;&gt;&lt;label for=&quot;toggle-button&quot; class=&quot;button-label&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; position: relative; display: inline-block; width: 82px; background-color: rgb(120, 214, 144); border: 1px solid rgb(204, 204, 204); border-radius: 30px; cursor: pointer;&quot;&gt;&lt;/label&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 18 Apr 2024 18:09:24 +0800</pubDate></item><item><title>Linux下安装和使用MySQL的详细教程</title><link>https://cykcyk.top/?id=10</link><description>&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/0af3cc554568470e887e8364eeb59181.gif#pic_center&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; object-fit: cover; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;toc&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 0px; overflow-wrap: break-word; font-size: 18px; line-height: 24px; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t0&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;文章目录&lt;/h4&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: circle;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#1mysql_131&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;1、利用指令修改mysql数据表中某个字段的长度&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#2mysql_153&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;2、查看mysql数据表结构&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#3mysql_189&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;3、给mysql数据表添加一个新的字段&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#4_220&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;4、删除数据表的数据&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#_1_MySQL_14&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;步骤 1：安装 MySQL&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#_2_MySQL__36&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;步骤 2：启动 MySQL 服务&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#_3_MySQL__50&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;步骤 3：设置 MySQL 根用户密码&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#_4_MySQL_59&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;步骤 4：登录到 MySQL&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#Linux__MySQL__13&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;Linux 下 MySQL 安装指令&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#Linux__MySQL__75&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;Linux 下 MySQL 使用指令&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122/article/details/132858926?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-8-132858926-null-null.nonecase#_130&quot; rel=&quot;nofollow&quot; target=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;其它常用指令&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/48bde8552ee74d64aba0f6289c47971b.jpeg&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;Linux__MySQL__13&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;Linux 下 MySQL 安装指令&lt;/h3&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_1_MySQL_14&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;步骤 1：安装 MySQL&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;打开终端窗口。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;使用以下命令之一安装 MySQL：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;对于 Ubuntu 或 Debian 系统：&lt;/p&gt;&lt;pre data-index=&quot;0&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo&amp;nbsp;apt&amp;nbsp;updatesudo&amp;nbsp;apt&amp;nbsp;install&amp;nbsp;mysql-server12&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;对于 CentOS、Fedora 或 RHEL 系统：&lt;/p&gt;&lt;pre data-index=&quot;1&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo&amp;nbsp;yum&amp;nbsp;updatesudo&amp;nbsp;yum&amp;nbsp;install&amp;nbsp;mysql-server12&lt;/pre&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_2_MySQL__36&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;步骤 2：启动 MySQL 服务&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;使用以下命令启动 MySQL 服务：&lt;/p&gt;&lt;pre data-index=&quot;2&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo&amp;nbsp;systemctl&amp;nbsp;start&amp;nbsp;mysql1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;若要使 MySQL 在系统引导时自动启动，使用以下命令：&lt;/p&gt;&lt;pre data-index=&quot;3&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;mysql1&lt;/pre&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_3_MySQL__50&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;步骤 3：设置 MySQL 根用户密码&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;使用以下命令设置 MySQL 的根用户密码：&lt;/p&gt;&lt;pre data-index=&quot;4&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo&amp;nbsp;mysql_secure_installation1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;按照提示输入密码，并根据需要进行其他安全设置。&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t5&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_4_MySQL_59&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;步骤 4：登录到 MySQL&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;运行以下命令以登录到 MySQL 服务器：&lt;/p&gt;&lt;pre data-index=&quot;5&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;mysql&amp;nbsp;-u&amp;nbsp;root&amp;nbsp;-p1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;输入之前设置的根用户密码。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;切换不同端口号的mysql：&lt;/p&gt;&lt;pre data-index=&quot;6&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;mysql&amp;nbsp;-u&amp;nbsp;root&amp;nbsp;-p&amp;nbsp;-P33071&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;注意，一定要记得指定端口例如-P3307，不然到时启动的就是默认情况&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;下的mysql版本&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t6&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;Linux__MySQL__75&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;Linux 下 MySQL 使用指令&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;现在，你已经成功登录到 MySQL 服务器，并可以开始使用它。以下是一些常用的 MySQL 命令：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;显示数据库：&lt;/code&gt;&lt;/p&gt;&lt;pre data-index=&quot;7&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;show&amp;nbsp;databases;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;创建数据库：&lt;/code&gt;&lt;/p&gt;&lt;pre data-index=&quot;8&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;create&amp;nbsp;database&amp;nbsp;&amp;lt;database_name&amp;gt;;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;使用数据库：&lt;/code&gt;&lt;/p&gt;&lt;pre data-index=&quot;9&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;use&amp;nbsp;&amp;lt;database_name&amp;gt;;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;显示数据库中的数据表：&lt;/code&gt;&lt;/p&gt;&lt;pre data-index=&quot;10&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;show&amp;nbsp;tables;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;创建数据表：&lt;/code&gt;&lt;/p&gt;&lt;pre data-index=&quot;11&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;create&amp;nbsp;table&amp;nbsp;&amp;lt;table_name&amp;gt;&amp;nbsp;(
&amp;nbsp;&amp;nbsp;&amp;lt;column_name&amp;gt;&amp;nbsp;&amp;lt;data_type&amp;gt;,
&amp;nbsp;&amp;nbsp;...);1234&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;插入数据：&lt;/code&gt;&lt;/p&gt;&lt;pre data-index=&quot;12&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;insert&amp;nbsp;into&amp;nbsp;&amp;lt;table_name&amp;gt;&amp;nbsp;(&amp;lt;column1&amp;gt;,&amp;nbsp;&amp;lt;column2&amp;gt;,&amp;nbsp;...)&amp;nbsp;values&amp;nbsp;(&amp;lt;value1&amp;gt;,&amp;nbsp;&amp;lt;value2&amp;gt;,&amp;nbsp;...);1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;查询数据：&lt;/code&gt;&lt;/p&gt;&lt;pre data-index=&quot;13&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;select&amp;nbsp;*&amp;nbsp;from&amp;nbsp;&amp;lt;table_name&amp;gt;;1&lt;/pre&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t7&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_130&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;其它常用指令&lt;/h3&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t8&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;1mysql_131&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;1、利用指令修改mysql数据表中某个字段的长度&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;要修改MySQL数据表中某个字段的长度，可以使用ALTER TABLE语句结合MODIFY COLUMN指令来实现。以下是修改字段长度的示例：&lt;/p&gt;&lt;pre data-index=&quot;14&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;ALTER&amp;nbsp;TABLE&amp;nbsp;表名&amp;nbsp;MODIFY&amp;nbsp;列名&amp;nbsp;数据类型(新长度);1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;例如，如果要将名为users表中的name字段的长度修改为100，可以使用以下指令：&lt;/p&gt;&lt;pre data-index=&quot;15&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;ALTER&amp;nbsp;TABLE&amp;nbsp;users&amp;nbsp;MODIFY&amp;nbsp;name&amp;nbsp;VARCHAR(100);1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;请根据实际情况将上述示例中的表名、列名和新长度替换为您要修改的数据表和字段的名称。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;需要注意的是，执行ALTER TABLE语句可能会涉及到对表的结构进行修改，一些情况下可能需要先备份数据或再进行其他操作，以免数据丢失或不一致。建议在执行结构修改操作之前谨慎处理，并确保已经做好充分的备份。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;这些是一些基本的 MySQL 命令供你在 Linux 环境中开始使用 MySQL&amp;nbsp;&lt;a href=&quot;https://so.csdn.net/so/search?q=%E6%95%B0%E6%8D%AE%E5%BA%93&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-view=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E6%95%B0%E6%8D%AE%E5%BA%93&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;数据库\&amp;quot;}&amp;quot;}&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E6%95%B0%E6%8D%AE%E5%BA%93&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;数据库\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;数据库&quot; data-pretit=&quot;数据库&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;数据库&lt;/a&gt;。你可以通过查阅 MySQL 文档或其他教程进一步学习和探索 MySQL。&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t9&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;2mysql_153&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2、查看mysql数据表结构&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;要查看MySQL数据表的结构，可以使用DESCRIBE语句或SHOW COLUMNS语句来获取表的详细信息。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;使用DESCRIBE语句：&lt;/p&gt;&lt;pre data-index=&quot;16&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;DESCRIBE&amp;nbsp;表名;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;例如，如果要查看名为users的表的结构，可以执行以下语句：&lt;/p&gt;&lt;pre data-index=&quot;17&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;DESCRIBE&amp;nbsp;users;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;执行上述语句后，将会返回包含表结构的结果集，包括字段名、数据类型、长度、索引等信息。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;使用SHOW COLUMNS语句：&lt;/p&gt;&lt;pre data-index=&quot;18&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;SHOW&amp;nbsp;COLUMNS&amp;nbsp;FROM&amp;nbsp;表名;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;例如，如果要查看名为users的表的结构，可以执行以下语句：&lt;/p&gt;&lt;pre data-index=&quot;19&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;SHOW&amp;nbsp;COLUMNS&amp;nbsp;FROM&amp;nbsp;users;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;执行上述语句后，将会返回包含表结构的结果集，包括字段名、数据类型、长度、索引等信息。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;这两种方式都可以用来查看表的结构，您可以根据实际需要选择其中一种方式进行使用。&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t10&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;3mysql_189&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;3、给mysql数据表添加一个新的字段&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;添加新字段：&lt;/code&gt;使用 ALTER TABLE 命令来添加新的字段。以下是示例命令的格式：&lt;/p&gt;&lt;pre data-index=&quot;20&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;ALTER&amp;nbsp;TABLE&amp;nbsp;table_name&amp;nbsp;ADD&amp;nbsp;column_name&amp;nbsp;column_definition;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;table_name：&lt;/code&gt;要添加字段的数据表的名称。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;column_name：&lt;/code&gt;要添加的新字段的名称。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;column_definition：&lt;/code&gt;新字段的定义，包括数据类型和任何其他约束。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;例如，如果你想在名为 users 的数据表中添加一个名为 email 的新字段，其数据类型为字符串（VARCHAR），允许的最大长度为 255，可以运行以下命令：&lt;/p&gt;&lt;pre data-index=&quot;21&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;ALTER&amp;nbsp;TABLE&amp;nbsp;users&amp;nbsp;ADD&amp;nbsp;email&amp;nbsp;VARCHAR(255);1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;确认字段添加成功：&lt;/code&gt;&amp;nbsp;执行上述命令后，可以使用 DESCRIBE 命令或 SHOW COLUMNS 命令检查数据表的结构，以确认新字段已成功添加。例如，运行以下命令：&lt;/p&gt;&lt;pre data-index=&quot;22&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;DESCRIBE&amp;nbsp;users;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;这将显示 users 数据表的结构，包括新添加的 email 字段。&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t11&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;4_220&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;4、删除数据表的数据&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;删除数据表中的数据：&lt;/code&gt;&amp;nbsp;使用 DELETE 命令删除数据表中的所有数据。以下是示例命令的格式：&lt;/p&gt;&lt;pre data-index=&quot;23&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;DELETE&amp;nbsp;FROM&amp;nbsp;table_name;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;table_name：&lt;/code&gt;要删除数据的数据表的名称。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;例如，如果你想删除名为 users 的数据表中的所有数据，可以运行以下命令：&lt;/p&gt;&lt;pre data-index=&quot;24&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;DELETE&amp;nbsp;FROM&amp;nbsp;users;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;这将从 users 数据表中删除所有数据。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;确认数据已被删除：&lt;/code&gt;&amp;nbsp;执行上述命令后，你可以运行 SELECT 语句来检查数据表中是否还有数据。例如，运行以下命令：&lt;/p&gt;&lt;pre data-index=&quot;25&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures;&quot;&gt;SELECT&amp;nbsp;*&amp;nbsp;FROM&amp;nbsp;users;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;如果返回的结果集为空，说明数据表中的所有数据已被成功删除。&lt;/p&gt;&lt;hr style=&quot;box-sizing: border-box; outline: 0px; overflow: visible; height: 0px; margin: 24px 0px; border-top: none; border-right: none; border-left: none; border-image: initial; border-bottom-style: solid; border-bottom-color: rgb(221, 221, 221); overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;span style=&quot;color:#A2E043;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;&gt;  码文不易，本篇文章就介绍到这里，如果想要学习更多&lt;span style=&quot;color:#ED7976;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;Java系列知识&lt;/span&gt;&lt;/span&gt;，&lt;span style=&quot;color:orange;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;点击&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://blog.csdn.net/hh867308122?type=blog&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;span style=&quot;color:red;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;关注博主&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;，博主带你零基础学习Java知识。与此同时，对于日常生活有困扰的朋友，欢迎阅读我的&lt;span style=&quot;color:#ED7976;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;第四栏目&lt;/span&gt;&lt;/span&gt;：&lt;a href=&quot;https://blog.csdn.net/hh867308122/category_11971690.html&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;《国学周更—心性养成之路》&lt;/a&gt;，学习技术的同时，我们也注重了心性的养成。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; --el-button-hover-bg-color: #6D5FFD; --el-button-hover-border-color: #6D5FFD; --el-button-active-bg-color: #6D5FFD; --el-button-active-border-color: #6D5FFD; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/e15b88a853574cf790eab90d2fca6520.gif#pic_center&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; object-fit: cover; --el-button-hover-bg-color: #6D5FFD; --el-button-hover-border-color: #6D5FFD; --el-button-active-bg-color: #6D5FFD; --el-button-active-border-color: #6D5FFD; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:36:11 +0800</pubDate></item><item><title>Ubuntu介绍、与centos的区别、基于VMware安装Ubuntu Server 22.04、配置远程连接、安装jdk+Tomcat</title><link>https://cykcyk.top/?id=9</link><description>&lt;h2 id=&quot;%E2%80%8B%E7%BC%96%E8%BE%91&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 22px; color: rgb(79, 79, 79); line-height: 32px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); text-align: center; user-select: auto !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;487&quot; src=&quot;https://img-blog.csdnimg.cn/direct/470e3a64e9624a27aa8ca6a9bf8448d5.png&quot; width=&quot;741&quot; style=&quot;box-sizing: border-box; outline: none; border: 0px; margin: 24px 0px 8px; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in; user-select: auto !important;&quot;/&gt;&lt;/h2&gt;&lt;p id=&quot;main-toc&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 24px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;目录&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t1&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;编辑&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t2&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;一、Ubuntu22.04介绍&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t3&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;二、Ubuntu与Centos的区别&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t4&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;三、基于VMware安装Ubuntu Server 22.04&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 48px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t5&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;下载&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 48px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t6&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;VMware安装&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t7&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;1.创建新的虚拟机&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t8&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;2.选择类型配置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t9&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;3.虚拟机硬件兼容性&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t10&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;4.安装客户机操作系统&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t11&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;5.选择客户机操作系统&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t12&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;6.命名虚拟机&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t13&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;7.处理器配置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t14&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;8.虚拟机内存&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t15&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;9.网络类型&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t16&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;10. 选择I/O控制器类型&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t17&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;11.选择磁盘类型&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t18&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;12.选择磁盘&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t19&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;13.指定磁盘容量&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t20&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;14. 自定义硬件&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t21&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;15.指定映像文件&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 48px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t22&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;配置Ubuntu22.04&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t23&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;1.运行Ubuntu&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t24&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;2.安装操作系统&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t25&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;3.选择操作系统语言&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t26&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;4.选择键盘布局&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t27&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;5.选择安装类型&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t28&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;6.网络配置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t29&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;7.代理地址配置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t30&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;8.设置系统默认镜像源&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t31&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;9.引导式存储布局配置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t32&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;10.存储配置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t33&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;11.弹出框&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t34&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;12.配置用户名，密码&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t35&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;13.升级到Ubnutu pro&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t36&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;14.下载OpenSSH服务&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t37&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;15.第三方软件服务包&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t38&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;16.配置完成&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t39&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;17.重新启动&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t40&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;四、配置远程连接&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 48px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t41&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;配置root用户&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t42&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;1.设置root用户及密码&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t43&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;2.切换root用户&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 96px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t44&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;3.设置root用户远程连接&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t45&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;五、安装jdk+Tomcat&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 48px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t46&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;1.Jdk&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 2px; margin-left: 48px; padding: 0px 0px 0px 24px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/136631740?spm=1001.2100.3001.7377&amp;utm_medium=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase&amp;depth_1-utm_source=distribute.pc_feed_blog_category.none-task-blog-classify_tag-5-136631740-null-null.nonecase#t47&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;2.Tomcat&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;hr id=&quot;hr-toc&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px; border-top: none; border-right: none; border-left: none; border-image: initial; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); overflow-wrap: break-word; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;/&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 22px; color: rgb(79, 79, 79); line-height: 32px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;一、Ubuntu22.04介绍&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;Ubuntu官网地址：&lt;/p&gt;&lt;pre data-index=&quot;0&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;https://ubuntu.com/&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;Ubuntu 22.04（也称为Ubuntu Jammy Jellyfish）&amp;nbsp;是 Ubuntu 操作系统的一个版本，于 2022 年 4 月发布。Ubuntu 是一种基于 Debian 的开源操作系统，它使用 Linux 内核，并且拥有庞大的社区支持。Ubuntu 22.04 带来了许多新功能和改进，包括更好的性能、更新的软件包和增强的安全性。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;以下是一些 Ubuntu 22.04 的新特性和改进：&lt;/p&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;新的默认应用程序：Ubuntu 22.04 带来了新的默认应用程序，包括新的文件管理器、文本编辑器和图像查看器。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;更好的性能：Ubuntu 22.04 在性能方面进行了优化，使得系统更加流畅，响应速度更快。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;更新的软件包：Ubuntu 22.04 包含了大量的更新软件包，包括最新的内核版本、更安全的浏览器和其他应用程序。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;增强的安全性：Ubuntu 22.04 加强了系统的安全性，提供了更好的防火墙保护、更强的密码策略和其他安全功能。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;更好的硬件支持：Ubuntu 22.04 提供了更好的硬件支持，包括对新硬件的兼容性改进和更好的驱动程序支持。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;新的桌面环境：Ubuntu 22.04继续采用GNOME桌面环境，但带来了许多改进和新功能，包括更好的集成、更多的自定义选项和增强的性能。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Snap支持：Ubuntu 22.04进一步增强了对Snap包的支持。Snap是一种应用包管理系统，允许用户从Snap Store安装和运行各种应用程序，无需担心依赖关系和其他配置问题。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;改进的软件中心：Ubuntu的软件中心在Ubuntu 22.04中得到了改进，提供了更直观的用户界面和更多的应用程序选择。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Yaru主题更新：Yaru是Ubuntu的默认主题，它在Ubuntu 22.04中得到了更新，提供了更加现代化和吸引人的外观。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;更好的多任务处理：Ubuntu 22.04通过改进的任务管理器和窗口管理功能，使得多任务处理变得更加高效。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;增强的网络功能：Ubuntu 22.04提供了增强的网络功能，包括对新网络协议的支持和更稳定的网络连接。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;更好的云服务集成：Ubuntu 22.04进一步增强了与云服务提供商的集成，使得在云环境中部署和管理Ubuntu变得更加简单。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2 id=&quot;%E4%BA%8C%E3%80%81Ubuntu%E4%B8%8ECentos%E7%9A%84%E5%8C%BA%E5%88%AB&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 22px; color: rgb(79, 79, 79); line-height: 32px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;二、Ubuntu与&lt;a href=&quot;https://so.csdn.net/so/search?q=Centos&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=Centos&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;Centos\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;Centos&quot; data-pretit=&quot;centos&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 3px 8px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; box-shadow: none; user-select: auto !important;&quot;&gt;Centos&lt;/a&gt;的区别&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); text-align: center; user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;394&quot; src=&quot;https://img-blog.csdnimg.cn/direct/73287d2a9ac74ec79caed7cb118f9cce.jpeg&quot; width=&quot;750&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;Ubuntu和CentOS都是流行的Linux发行版，但它们在多个方面存在一些区别。以下是它们之间的一些主要差异：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;软件包管理：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu使用APT（Advanced Package Tool）作为其软件包管理系统，而CentOS使用YUM（Yellowdog Updater Modified）。这两个工具都允许用户安装、更新、升级和删除软件包，但它们的语法和工作方式略有不同。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;默认桌面环境：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu的默认桌面环境是GNOME，而CentOS的默认桌面环境是GNOME或KDE。这意味着它们的默认外观和感觉可能会有所不同。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;社区支持：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu拥有庞大的社区支持，包括大量的教程、文档和第三方软件。这使得新用户在遇到问题时更容易找到解决方案。而CentOS的社区相对较小，但它仍然得到了很好的支持，特别是在企业环境中。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;更新和发布周期：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu的发布周期较短，通常每6个月发布一个新版本。这使得用户能够更快地获得新功能和安全更新。而CentOS的发布周期较长，通常每两到三年发布一个新版本。这使得它在稳定性和兼容性方面可能更具优势。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;目标用户群：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu主要面向桌面用户和个人用户，提供易于使用的界面和丰富的软件库。而CentOS主要面向企业用户和服务器管理员，提供稳定性和安全性更高的系统。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;安全性：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;CentOS通常被认为比Ubuntu更安全，因为它专注于稳定性和安全性。CentOS还提供了SELinux（Security-Enhanced Linux）等安全功能，以帮助保护系统免受攻击。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;软件仓库：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu 使用的是Ubuntu软件仓库，其中包含大量的开源软件包，而且更新较为频繁。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;CentOS 则使用的是EPEL（Extra Packages for Enterprise Linux）和RPM Fusion等仓库，这些仓库提供了更多的企业级软件包。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;默认shell：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu 默认使用的是Bash shell。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;CentOS 也默认使用Bash shell，但在一些新版本中可能会采用Zsh或其他shell。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;版本命名：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu 的版本命名基于年份和月份，如“20.04 LTS”。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;CentOS 的版本命名基于RHEL（Red Hat Enterprise Linux）的版本号，如“CentOS 8”对应的是“RHEL 8”。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;与上游的关系：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu 是基于Debian的，但它并不完全遵循Debian的发布计划，而是有自己的发布周期和特性。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;CentOS 是Red Hat Enterprise Linux (RHEL)的社区版本，它尽可能与RHEL保持同步，但免费提供。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;桌面环境的多样性：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu 除了默认的GNOME外，还提供了KDE、XFCE等其他桌面环境的官方支持。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;CentOS 主要关注服务器市场，因此其桌面环境的支持可能不如Ubuntu丰富。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;社区文化和氛围：&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;Ubuntu 社区以其友好和乐于助人的氛围而闻名，其官方论坛和文档都非常活跃。&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;CentOS 社区则更侧重于稳定性和企业级需求，社区氛围可能更加专业和严肃。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;Ubuntu和CentOS各有优势，选择哪个发行版取决于你的具体需求。如果你需要一个易于使用且拥有丰富软件库的桌面系统，那么Ubuntu可能是一个更好的选择。如果你需要一个稳定、安全且专注于服务器环境的系统，那么CentOS可能更适合你。&lt;/p&gt;&lt;h2 id=&quot;%E4%B8%89%E3%80%81%E5%9F%BA%E4%BA%8EVMware%E5%AE%89%E8%A3%85Ubuntu%20Server%2022.04&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 22px; color: rgb(79, 79, 79); line-height: 32px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;三、基于&lt;a href=&quot;https://so.csdn.net/so/search?q=VMware%E5%AE%89%E8%A3%85Ubuntu&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-view=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=VMware%E5%AE%89%E8%A3%85Ubuntu&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;VMware安装Ubuntu\&amp;quot;}&amp;quot;}&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=VMware%E5%AE%89%E8%A3%85Ubuntu&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;VMware安装Ubuntu\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;VMware安装Ubuntu&quot; data-pretit=&quot;vmware安装ubuntu&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 3px 8px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; box-shadow: none; user-select: auto !important;&quot;&gt;VMware安装Ubuntu&lt;/a&gt;&amp;nbsp;Server 22.04&lt;/h2&gt;&lt;h3 id=&quot;%E4%B8%8B%E8%BD%BD&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;下载&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;下载地址：&lt;/p&gt;&lt;pre data-index=&quot;1&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;https://cn.ubuntu.com/download/server/step1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/3105c8ec764d409a9943a93c9f7444cf.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 id=&quot;VMware%E5%AE%89%E8%A3%85&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t5&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://so.csdn.net/so/search?q=VMware%E5%AE%89%E8%A3%85&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-view=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=VMware%E5%AE%89%E8%A3%85&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;VMware安装\&amp;quot;}&amp;quot;}&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=VMware%E5%AE%89%E8%A3%85&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;VMware安装\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;VMware安装&quot; data-pretit=&quot;vmware安装&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 3px 8px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; box-shadow: none; user-select: auto !important;&quot;&gt;VMware安装&lt;/a&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;不会使用VMware虚拟机的朋友可以查看：&lt;a href=&quot;https://blog.csdn.net/weixin_74457789/article/details/135719703?spm=1001.2014.3001.5501&quot; title=&quot;VMware虚拟机保姆级安装及使用教程-CSDN博客&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;VMware虚拟机保姆级安装及使用教程-CSDN博客&lt;/a&gt;&lt;/p&gt;&lt;h4 id=&quot;1.%E5%88%9B%E5%BB%BA%E6%96%B0%E7%9A%84%E8%99%9A%E6%8B%9F%E6%9C%BA&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t6&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;1.创建新的虚拟机&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 打开VMware Workstation ，&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;text-decoration:underline;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;创建新的虚拟机&lt;/span&gt;&lt;/span&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/fac6a8e551f74a1fadb929bc35d4d1ee.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;2.%E9%80%89%E6%8B%A9%E7%B1%BB%E5%9E%8B%E9%85%8D%E7%BD%AE&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t7&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.选择类型配置&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 这里选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;text-decoration:underline;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;自定义（高级）&lt;/span&gt;&lt;/span&gt;方式、下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/2d75c8e81b5c427da2fcdb943d276f77.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;3.%E8%99%9A%E6%8B%9F%E6%9C%BA%E7%A1%AC%E4%BB%B6%E5%85%BC%E5%AE%B9%E6%80%A7&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t8&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;3.虚拟机硬件兼容性&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;text-decoration:underline;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;默认&lt;/span&gt;&lt;/span&gt;即可、下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/f7e2bb2da0aa4a73a2c478edcd88678f.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;4.%E5%AE%89%E8%A3%85%E5%AE%A2%E6%88%B7%E6%9C%BA%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t9&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;4.安装客户机操作系统&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;text-decoration:underline;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;稍后安装操作系统&lt;/span&gt;&lt;/span&gt;，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/8a6a82f18ede49599619472ecccc523a.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;5.%E9%80%89%E6%8B%A9%E5%AE%A2%E6%88%B7%E6%9C%BA%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t10&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;5.选择客户机操作系统&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 客户机操作系统选择：&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;LInux&lt;/span&gt;&amp;nbsp; &amp;nbsp;版本为：&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;Ubuntu 64 位&lt;/span&gt;&amp;nbsp; &amp;nbsp; 下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/92bac3b148de48448a05f9e484a8c2de.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;6.%E5%91%BD%E5%90%8D%E8%99%9A%E6%8B%9F%E6%9C%BA&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t11&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;6.命名虚拟机&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 根据自身需求命名及存放虚拟机位置，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/175c1443afd547e0b221913093e3a336.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;7.%E5%A4%84%E7%90%86%E5%99%A8%E9%85%8D%E7%BD%AE&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t12&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;7.处理器配置&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 默认即可，也可根据自身需求更改。下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/3d0fd4deadb843a695158ac9775f118c.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;8.%E8%99%9A%E6%8B%9F%E6%9C%BA%E5%86%85%E5%AD%98&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t13&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;8.虚拟机内存&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 自定义虚拟机内存，可以手动输入也可以快键选定虚拟机内存，默认即可。下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/09889b19a29540559c00ede46d13329d.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;9.%E7%BD%91%E7%BB%9C%E7%B1%BB%E5%9E%8B&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t14&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;9.网络类型&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;使用网络地址转换（NAT）&lt;/span&gt;，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/52cc5d1cc2e546bba9d7025b7c78d381.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;10.%20%E9%80%89%E6%8B%A9I%2FO%E6%8E%A7%E5%88%B6%E5%99%A8%E7%B1%BB%E5%9E%8B&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t15&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;10. 选择I/O控制器类型&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;LSI Logic（L）&lt;/span&gt;下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/5767b67cdd9c4be0ae24f3267bf8bcf5.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;11.%E9%80%89%E6%8B%A9%E7%A3%81%E7%9B%98%E7%B1%BB%E5%9E%8B&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t16&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;11.选择磁盘类型&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;SCSI（S）&lt;/span&gt;下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/a858abb088a846af8143a50111508de3.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;12.%E9%80%89%E6%8B%A9%E7%A3%81%E7%9B%98&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t17&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;12.选择磁盘&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;创建新虚拟磁盘&lt;/span&gt;&amp;nbsp; &amp;nbsp;下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/9c5d0ac49a0747e1a401d2f747e7aaf8.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;13.%E6%8C%87%E5%AE%9A%E7%A3%81%E7%9B%98%E5%AE%B9%E9%87%8F&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t18&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;13.指定磁盘容量&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 设置最大磁盘大小，根据&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;建议大小&lt;/span&gt;修改即可，选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;将虚拟磁盘拆分成多个文件&lt;/span&gt;。下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/ec7d449c711447b3b143e3cc955318cf.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;14.指定磁盘文件&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 默认即可，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/f0dd8ff9d39a48da9d98fc1010b2da5b.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;14.%20%E8%87%AA%E5%AE%9A%E4%B9%89%E7%A1%AC%E4%BB%B6&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t19&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;14. 自定义硬件&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;自定义硬件&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;673&quot; src=&quot;https://img-blog.csdnimg.cn/direct/161e13a7ead34819ac721e062bc16f94.png&quot; width=&quot;712&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;15.%E6%8C%87%E5%AE%9A%E6%98%A0%E5%83%8F%E6%96%87%E4%BB%B6&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t20&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;15.指定映像文件&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;新CD/DVD（SATA）&lt;/span&gt;，设置&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;启动时连接&lt;/span&gt;，&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;使用ISO映像文件&lt;/span&gt;，点击浏览选择下载好的映像文件，最后关闭，回到&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;步骤14.自定义硬件&lt;/span&gt;，完成即可&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/a77f00e3e1b14da09b577f7b45ae6cd9.png&quot; width=&quot;1059&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 id=&quot;%E9%85%8D%E7%BD%AEUbuntu22.04%C2%A0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t21&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;配置Ubuntu22.04&amp;nbsp;&lt;/h3&gt;&lt;h4 id=&quot;1.%E8%BF%90%E8%A1%8CUbuntu&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t22&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;1.运行Ubuntu&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 开启此虚拟机&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/8a630c6d551744bd98978e09c10d8d7e.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;2.%E5%AE%89%E8%A3%85%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t23&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.安装操作系统&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 操作均由上下键完成&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 默认选择&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;Try or Install Ubuntu Server&amp;nbsp;&lt;/span&gt;，选中后回车等待下载即可&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;400&quot; src=&quot;https://img-blog.csdnimg.cn/direct/60aedf59a068496b9f46b4b0f575d62d.png&quot; width=&quot;720&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;3.%E9%80%89%E6%8B%A9%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%AF%AD%E8%A8%80&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t24&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;3.选择操作系统语言&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择默认的&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; color: #FBD4D0; user-select: auto !important;&quot;&gt;English&lt;/span&gt;，回车下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/de8a403c1d5a453aa03da45ff4fe1a48.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;4.%E9%80%89%E6%8B%A9%E9%94%AE%E7%9B%98%E5%B8%83%E5%B1%80&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t25&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;4.选择键盘布局&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 默认&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;English键盘布局&lt;/span&gt;即可，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/79f0c9442991415f815b8cc225f6796c.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;5.%E9%80%89%E6%8B%A9%E5%AE%89%E8%A3%85%E7%B1%BB%E5%9E%8B%C2%A0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t26&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;5.选择安装类型&amp;nbsp;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;Ubuntu Server （minimized）&lt;/span&gt;最小化安装，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/ede84be1d9cc4e89adc8bef115a0be9c.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;6.%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t27&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;6.网络配置&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;默认 DHCP 自动获取 IP 地址。选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/460a6d6f2bed439abd1350fe71ae0f60.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;7.%E4%BB%A3%E7%90%86%E5%9C%B0%E5%9D%80%E9%85%8D%E7%BD%AE&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t28&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;7.代理地址配置&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 默认，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/b40f6a8e09324b36aacc3ec92d04229b.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;8.%E8%AE%BE%E7%BD%AE%E7%B3%BB%E7%BB%9F%E9%BB%98%E8%AE%A4%E9%95%9C%E5%83%8F%E6%BA%90&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t29&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;8.设置系统默认镜像源&lt;/h4&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; padding: 16px; margin: 0px 0px 24px; border-left: 8px solid rgb(221, 223, 228); background: rgb(238, 240, 244); overflow: auto; overflow-wrap: break-word; word-break: normal; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-size: 16px; text-wrap: wrap; user-select: auto !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;默认源：&lt;/p&gt;&lt;pre data-index=&quot;2&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;http://cn.archive.ubuntu.com/ubuntu&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;阿里云源：&lt;/p&gt;&lt;pre data-index=&quot;3&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;https://mirrors.aliyun.com/ubuntu&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;华为云源：&lt;/p&gt;&lt;pre data-index=&quot;4&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;https://repo.huaweicloud.com/ubuntu&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;腾讯云源：&lt;/p&gt;&lt;pre data-index=&quot;5&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;https://mirrors.cloud.tencent.com/ubuntu&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;清华大学源：&lt;/p&gt;&lt;pre data-index=&quot;6&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/&lt;/pre&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 在&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;Mirror address:&lt;/span&gt;&amp;nbsp;中修改系统默认源，此处使用为阿里云源&amp;nbsp;，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/c8551b8f57394884aea8e69a2c4a0265.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;9.%E5%BC%95%E5%AF%BC%E5%BC%8F%E5%AD%98%E5%82%A8%E5%B8%83%E5%B1%80%E9%85%8D%E7%BD%AE&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t30&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;9.引导式存储布局配置&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 默认即可，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/4a5a9dc32fc046239e6d7892f4c955f0.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;10.%E5%AD%98%E5%82%A8%E9%85%8D%E7%BD%AE&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t31&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;10.存储配置&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 默认，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/f2d5be4ff6744d44a6fc6753a2761af8.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;11.%E5%BC%B9%E5%87%BA%E6%A1%86&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t32&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;11.弹出框&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择Continue,回车&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/8347ce8f34dc4ad5ba2b13068117a9ec.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;12.%E9%85%8D%E7%BD%AE%E7%94%A8%E6%88%B7%E5%90%8D%EF%BC%8C%E5%AF%86%E7%A0%81&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t33&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;12.配置用户名，密码&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 配置完成后选择Done完成，下一步&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/36882336a7be404798a699f2c34937db.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;13.%E5%8D%87%E7%BA%A7%E5%88%B0Ubnutu%20pro&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t34&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;13.升级到Ubnutu pro&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择 Skip for now 暂时跳过，选择continue继续下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/4cada502f5584180a4bb19617799847f.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;14.%E4%B8%8B%E8%BD%BDOpenSSH%E6%9C%8D%E5%8A%A1%C2%A0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t35&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;14.下载OpenSSH服务&amp;nbsp;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;勾选&amp;nbsp;&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;Install OpenSSH server&amp;nbsp;&lt;/span&gt;，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/823881f023a04efb83d3c5f2a9f52055.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;15.%E7%AC%AC%E4%B8%89%E6%96%B9%E8%BD%AF%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%8C%85&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t36&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;15.第三方软件服务包&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 根据个人需求添加，选择Done完成，下一步&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/684682eec63040f8ab04f97df9901292.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;16.%E9%85%8D%E7%BD%AE%E5%AE%8C%E6%88%90&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t37&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;16.配置完成&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;等待安装&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/3828d15715664c96b3644e66076a88ca.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;17.%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t38&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;17.重新启动&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 选择&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;&amp;nbsp;reboot now&amp;nbsp;&lt;/span&gt;立即重新启动，重启页面按回车&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;768&quot; src=&quot;https://img-blog.csdnimg.cn/direct/d9c6302cf4fb433c8539e298722fbb0c.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;18.登录页面&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 账号密码为步骤12配置的用户名及密码&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;600&quot; src=&quot;https://img-blog.csdnimg.cn/direct/34dd8bcef2624a1d911c36a804c326e3.png&quot; width=&quot;800&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%9B%9B%E3%80%81%E9%85%8D%E7%BD%AE%E8%BF%9C%E7%A8%8B%E8%BF%9E%E6%8E%A5%C2%A0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 22px; color: rgb(79, 79, 79); line-height: 32px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t39&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;四、配置远程连接&amp;nbsp;&lt;/h2&gt;&lt;h3 id=&quot;%E9%85%8D%E7%BD%AEroot%E7%94%A8%E6%88%B7&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t40&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;配置root用户&lt;/h3&gt;&lt;h4 id=&quot;1.%E8%AE%BE%E7%BD%AEroot%E7%94%A8%E6%88%B7%E5%8F%8A%E5%AF%86%E7%A0%81&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t41&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;1.设置root用户及密码&lt;/h4&gt;&lt;pre data-index=&quot;7&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;sudo&amp;nbsp;passwd[sudo]&amp;nbsp;password&amp;nbsp;for&amp;nbsp;wsl:&amp;nbsp;//输入wsl用户密码New&amp;nbsp;password:&amp;nbsp;//输入root密码Retype&amp;nbsp;new&amp;nbsp;password:&amp;nbsp;//确认root密码passwd:&amp;nbsp;password&amp;nbsp;updated&amp;nbsp;successfully&amp;nbsp;//密码更新成功&lt;/pre&gt;&lt;h4 id=&quot;2.%E5%88%87%E6%8D%A2root%E7%94%A8%E6%88%B7&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t42&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.切换root用户&lt;/h4&gt;&lt;pre data-index=&quot;8&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;su&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//切换root用户Password&amp;nbsp;&amp;nbsp;//root用户密码&lt;/pre&gt;&lt;h4 id=&quot;3.%E8%AE%BE%E7%BD%AEroot%E7%94%A8%E6%88%B7%E8%BF%9C%E7%A8%8B%E8%BF%9E%E6%8E%A5&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 26px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t43&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;3.设置root用户远程连接&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;配置&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;sshd_config&lt;/span&gt;文件&lt;/p&gt;&lt;pre data-index=&quot;9&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;vim&amp;nbsp;/etc/ssh/sshd_config&lt;/pre&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; padding: 16px; margin: 0px 0px 24px; border-left: 8px solid rgb(221, 223, 228); background: rgb(238, 240, 244); overflow: auto; overflow-wrap: break-word; word-break: normal; color: rgb(51, 51, 51); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-size: 16px; text-wrap: wrap; user-select: auto !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;注：出现错误&lt;/p&gt;&lt;pre data-index=&quot;10&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;bash:&amp;nbsp;vim:&amp;nbsp;command&amp;nbsp;not&amp;nbsp;found&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;安装vim软件包&lt;/p&gt;&lt;pre data-index=&quot;11&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;apt-get&amp;nbsp;install&amp;nbsp;vim&amp;nbsp;-y&lt;/pre&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;在sshd_config配置文件中添加如下配置，&lt;/p&gt;&lt;pre data-index=&quot;12&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;PermitRootLogin&amp;nbsp;yes&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;输入&amp;quot;i&amp;quot;开始编辑，在 # Authentication&amp;nbsp;&amp;nbsp;后添加内容，添加完成后按Esc退出编辑模式，输入&amp;quot;:wq&amp;quot;保存文件并退出&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;600&quot; src=&quot;https://img-blog.csdnimg.cn/direct/9ce47c5bea3041cc99727dcc0db41525.png&quot; width=&quot;800&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;重启ssh服务，使用shell工具连接Ubuntu&lt;/p&gt;&lt;pre data-index=&quot;13&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;service&amp;nbsp;ssh&amp;nbsp;restart&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;输入命令 &amp;quot;ip a&amp;quot; 查看Ubuntu IP地址，使用FinalShell连接工具连接Ubuntu&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;输入主机地址后，用root用户登录&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;818&quot; src=&quot;https://img-blog.csdnimg.cn/direct/71bb16dc8fd7406a9bddfb062c2c545c.png&quot; width=&quot;903&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E4%BA%94%E3%80%81%E5%AE%89%E8%A3%85jdk%2BTomcat&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 22px; color: rgb(79, 79, 79); line-height: 32px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t44&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;五、安装jdk+Tomcat&lt;/h2&gt;&lt;h3 id=&quot;1.Jdk&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t45&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;1.Jdk&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;在 usr/local 目录中创建Java目录，上传jdk压缩包并解压&lt;/p&gt;&lt;pre data-index=&quot;14&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;root@wsl:~#&amp;nbsp;cd&amp;nbsp;/usr/local/root@wsl:/usr/local#&amp;nbsp;mkdir&amp;nbsp;javaroot@wsl:/usr/local#&amp;nbsp;cd&amp;nbsp;java/root@wsl:/usr/local/java#&amp;nbsp;tar&amp;nbsp;-zxvf&amp;nbsp;jdk-8u151-linux-x64.tar.gz&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1049&quot; src=&quot;https://img-blog.csdnimg.cn/direct/b1a84239f995458d82921f12745ec2be.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;配置Jdk环境变量，编辑profile文件&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;sudo vim /etc/profile&lt;/span&gt;&lt;/p&gt;&lt;pre data-index=&quot;15&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;//&amp;nbsp;注意！请修改export&amp;nbsp;JAVA_HOME=请修改JDK解压路径export&amp;nbsp;JAVA_HOME=/usr/local/java/jdk1.8.0_301export&amp;nbsp;JRE_HOME=$JAVA_HOME/jreexport&amp;nbsp;CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/libexport&amp;nbsp;PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;设置环境变量生效，并查看环境变量是否配置成功&lt;/p&gt;&lt;pre data-index=&quot;16&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;source&amp;nbsp;/etc/profile//&amp;nbsp;查看java版本java&amp;nbsp;-version&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;270&quot; src=&quot;https://img-blog.csdnimg.cn/direct/797f4ab5cdd24ec5a9c3e01c141e31f3.png&quot; width=&quot;979&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 id=&quot;2.Tomcat%C2%A0&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; overflow-wrap: break-word; text-wrap: wrap; user-select: auto !important;&quot;&gt;&lt;a name=&quot;t46&quot; style=&quot;box-sizing: border-box; outline: none; margin: 24px 0px 8px; padding: 0px; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2.Tomcat&amp;nbsp;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;在 usr/local 目录中创建Tomcat目录，上传Tomcat压缩包并解压&lt;/p&gt;&lt;pre data-index=&quot;17&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;root@wsl:/usr/local#&amp;nbsp;mkdir&amp;nbsp;Tomcatroot@wsl:/usr/local#&amp;nbsp;cd&amp;nbsp;Tomcat/root@wsl:/usr/local/Tomcat#&amp;nbsp;tar&amp;nbsp;-zxvf&amp;nbsp;apache-tomcat-8.5.20.tar.gz&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;进入Tomcat中的conf目录修改tomcat-users.xml文件&lt;/p&gt;&lt;pre data-index=&quot;18&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;root@wsl:/usr/local/Tomcat/apache-tomcat-8.5.20#&amp;nbsp;cd&amp;nbsp;/usr/local/Tomcat/apache-tomcat-8.5.20/conf/root@wsl:/usr/local/Tomcat/apache-tomcat-8.5.20/conf#&amp;nbsp;vim&amp;nbsp;tomcat-users.xml&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;在文件最后&amp;lt;/tomcat-users&amp;gt;根目录上方插入以下内容&lt;/p&gt;&lt;pre data-index=&quot;19&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;&amp;lt;role&amp;nbsp;rolename=&amp;quot;manager-gui&amp;quot;/&amp;gt;&amp;nbsp;&amp;lt;user&amp;nbsp;username=&amp;quot;admin&amp;quot;&amp;nbsp;password=&amp;quot;1234&amp;quot;&amp;nbsp;roles=&amp;quot;manager-gui&amp;quot;/&amp;gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;进入到&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;/usr/local/Tomcat/apache-tomcat-8.5.20/webapps/manager/META-INF&lt;/span&gt;目录中修改&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; background-color: #FBD4D0; user-select: auto !important;&quot;&gt;context.xml&lt;/span&gt;&lt;/p&gt;&lt;pre data-index=&quot;20&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;//&amp;nbsp;修改context.xml文件vim&amp;nbsp;/usr/local/Tomcat/apache-tomcat-8.5.20/webapps/manager/META-INF/context.xml//&amp;nbsp;注释内容&amp;lt;Valve&amp;nbsp;className=&amp;quot;org.apache.catalina.valves.RemoteAddrValve&amp;quot;allow=&amp;quot;127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1&amp;quot;&amp;nbsp;/&amp;gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1049&quot; src=&quot;https://img-blog.csdnimg.cn/direct/291182a0d378495ca7ca63c25357dde3.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp;进入Tomcat中的bin目录，启动Tomcat&lt;/p&gt;&lt;pre data-index=&quot;21&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;root@wsl:cd&amp;nbsp;/usr/local/Tomcat/apache-tomcat-8.5.20/bin/root@wsl:/usr/local/Tomcat/apache-tomcat-8.5.20/bin#&amp;nbsp;./startup.sh&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;在浏览器中输入Tomcat访问地址，点击Manager App&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/315bfabe826e4b379913997815980748.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;在弹出框中输入在tomcat-users.xml文件中设置的账号密码&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;957&quot; src=&quot;https://img-blog.csdnimg.cn/direct/9e6129e5707049d2a398f0c23c06d3a4.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;进入页面后在WAR file to deploy 中选择需要的war包上传，需要war包的可以查看博主资源，&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/31c351f0f73445059e904502bb895930.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;上传文件后，在Applications中点击文件运行&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/d281040daf2f48a3ab93f7e701587124.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;页面效果如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; --el-button-hover-bg-color: #6D5FFD; --el-button-hover-border-color: #6D5FFD; --el-button-active-bg-color: #6D5FFD; --el-button-active-border-color: #6D5FFD; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1200&quot; src=&quot;https://img-blog.csdnimg.cn/direct/7d3cf459b15c46368e56759409ff493f.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; --el-button-hover-bg-color: #6D5FFD; --el-button-hover-border-color: #6D5FFD; --el-button-active-bg-color: #6D5FFD; --el-button-active-border-color: #6D5FFD; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:35:16 +0800</pubDate></item><item><title>nginx启动报错nginx: [emerg] unknown directive “stream“ in /usr/local/project/nginx/conf/nginx.conf:159</title><link>https://cykcyk.top/?id=8</link><description>&lt;article class=&quot;baidu_pl&quot; style=&quot;box-sizing: border-box; outline: 0px; position: relative; padding-top: 16px; color: rgb(51, 51, 51); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;Segoe UI&amp;quot;, Arial, Roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; text-wrap: wrap; user-select: auto !important;&quot;&gt;&lt;div id=&quot;article_content&quot; class=&quot;article_content clearfix&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;div id=&quot;content_views&quot; class=&quot;htmledit_views&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin: 0px; padding: 0px; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; overflow-wrap: break-word; position: relative; min-height: 70px; font-size: 16px !important;&quot;&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;原因是在nginx的配置文件中添加了配置stream块之后，启动nginx服务，出现异常信息：nginx: [emerg] unknown directive &amp;quot;stream&amp;quot; in /usr/local/project/nginx/conf/nginx.conf:159&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;查看nginx的版本信息&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;0&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;./nginx&amp;nbsp;-V&lt;/pre&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-2 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;125&quot; src=&quot;https://img-blog.csdnimg.cn/direct/1f9c536dba754bfaa32b1196c8f0884b.png&quot; width=&quot;706&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;从nginx官方网址下载nginx安装包，本示例下载：nginx-1.24.0.tar.gz&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;将下载好的压缩包通过ssh远程传输到Linux系统，然后解压&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;2&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;tar&amp;nbsp;-zxvf&amp;nbsp;nginx-1.24.0.tar.gz&lt;/pre&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-2 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;1&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;mv&amp;nbsp;nginx&amp;nbsp;nginx.back&lt;/pre&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-3 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;291&quot; src=&quot;https://img-blog.csdnimg.cn/direct/5072bb99e53c4dada0f351b8e6ef8fd2.png&quot; width=&quot;839&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-4 list-num-paddingleft-1&quot;&gt;&lt;p&gt;首先先备份以前旧的安装的nginx目录&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-5 list-num-paddingleft-1&quot;&gt;&lt;p&gt;解压上传的压缩包文件&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;进入到解压好的nginx-1.24.0的目录，复制./nginx -V中的configure arguments:中的后面的值，并在其后面加上要新增的模块，执行语句&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;3&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;./configure&amp;nbsp;--prefix=/usr/local/project/nginx&amp;nbsp;--with-http_ssl_module&amp;nbsp;--with-http_stub_status_module&amp;nbsp;--with-http_gzip_static_module&amp;nbsp;--with-stream=dynamic&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;执行make命令，编译配置&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;4&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;make&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;执行make install命令，进行安装&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;5&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;make&amp;nbsp;install&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;将原先备份的nginx.back中自己相关的配置文件信息直接拷贝覆盖到新的nginx目录下即可，当前示例只改变到conf/nginx.conf文件，所以只需要覆盖更新当前文件即可&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;6&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;cp&amp;nbsp;-rf&amp;nbsp;./nginx.conf&amp;nbsp;/usr/local/project/nginx/conf&lt;/pre&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-2 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;414&quot; src=&quot;https://img-blog.csdnimg.cn/direct/8a95faa09e7b46baa966cbac6acb053a.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;查看新安装的nginx版本&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;202&quot; src=&quot;https://img-blog.csdnimg.cn/direct/db73ef3ff81f4403831b936a9a3e6124.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;修改nginx.conf文件，在首行添加加载ngx_stream_module.so&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;7&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;load_module&amp;nbsp;/usr/local/project/nginx/modules/ngx_stream_module.so;&lt;/pre&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-2 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;326&quot; src=&quot;https://img-blog.csdnimg.cn/direct/9a898ad463b64b80aaef1fb2cdb66c96.png&quot; width=&quot;836&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;检查nginx的配置文件信息&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;8&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;./nginx&amp;nbsp;-t&lt;/pre&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-2 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;98&quot; src=&quot;https://img-blog.csdnimg.cn/direct/854aa83be3fc4492ba32afa4bc56065b.png&quot; width=&quot;1126&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;启动nginx&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;pre data-index=&quot;9&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; line-height: 22px; color: rgb(0, 0, 0); max-height: unset;&quot;&gt;./nginx&lt;/pre&gt;&lt;/li&gt;&lt;li class=&quot;list-num-1-2 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;29&quot; src=&quot;https://img-blog.csdnimg.cn/direct/8c3838528f45489abae2826d3b363531.png&quot; width=&quot;708&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;访问nginx的默认80端口：&lt;a href=&quot;http://192.168.xxx.xxx/&quot; rel=&quot;nofollow&quot; title=&quot;http://192.168.xxx.xxx/&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;http://192.168.xxx.xxx/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: num;&quot; class=&quot;custom_num list-paddingleft-1&quot;&gt;&lt;li class=&quot;list-num-1-1 list-num-paddingleft-1&quot;&gt;&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;895&quot; src=&quot;https://img-blog.csdnimg.cn/direct/9d1bcb1d52bc4c8fa017744e4e4fef03.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/article&gt;&lt;p&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; color: rgb(51, 51, 51); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;Segoe UI&amp;quot;, Arial, Roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; text-wrap: wrap; user-select: auto !important;&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;blog-content-box&quot; id=&quot;recommendSwitch&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px 24px 16px; position: relative; background: rgb(255, 255, 255); border-radius: 2px 2px 0px 0px; color: rgb(51, 51, 51); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, &amp;quot;Segoe UI&amp;quot;, Arial, Roboto, &amp;quot;PingFang SC&amp;quot;, miui, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; text-wrap: wrap; text-align: right; user-select: auto !important;&quot;&gt;&lt;label for=&quot;toggle-button&quot; class=&quot;button-label&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; position: relative; display: inline-block; width: 82px; background-color: rgb(120, 214, 144); border: 1px solid rgb(204, 204, 204); border-radius: 30px; cursor: pointer;&quot;&gt;&lt;/label&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:34:39 +0800</pubDate></item><item><title>MySQL 查询性能优化</title><link>https://cykcyk.top/?id=7</link><description>&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/direct/a9ac1e8e110b46e0bd45e944157575d7.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in; user-select: auto !important;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;如果把查询看作是一个任务，那么它由一些列子任务组成，每个子任务都会消耗一定的时间。如果要优化查询，实际上要优化其子任务，要么消除其中一些子任务，要么减少子任务的执行次数。通常来说，查询的&lt;a href=&quot;https://so.csdn.net/so/search?q=%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;生命周期\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;生命周期&quot; data-pretit=&quot;生命周期&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;生命周期&lt;/a&gt;大致可以按照顺序来看：从客户端到服务器，然后在服务器上进行解析，生成执行计划，执行，并返回结果给客户端。其中“执行”可以认为是整个生命周期中最重要的阶段，其中包括大量为了检索数据到存储引擎的调用以及调用后的数据处理，包括排序、分组等。上述操作会在网络、CPU计算、生成统计信息和执行计划、锁等待（互斥等待）等操作上花费时间，尤其是向底层存储引擎检索数据的调用操作。根据存储引擎的不同，可能还会产生大量的上下文切换以及系统调用。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t0&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_6&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;一、是否请求了不需要的数据&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;查询性能低下最基本的原因是访问的数据太多。大部分性能低下的查询都可以通过减少访问的数据量的方式进行优化。对于低效查询可以通过如下两个步骤来分析总是有效：&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【1】确定应用程序是否在检索大量超过需要的数据。意味着访问了太多的行或者太多的列。&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【2】确定 MySQL 服务器是否在分析大量超过需要的数据行。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;有些查询会请求超过实际需要的数据，然后这些多余的数据会被应用程序丢弃。这会给 MySQL 服务器带来额外的负担，并增加网络开销【&lt;a href=&quot;https://so.csdn.net/so/search?q=%E5%BA%94%E7%94%A8%E6%9C%8D%E5%8A%A1%E5%99%A8&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-view=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E5%BA%94%E7%94%A8%E6%9C%8D%E5%8A%A1%E5%99%A8&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;应用服务器\&amp;quot;}&amp;quot;}&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E5%BA%94%E7%94%A8%E6%9C%8D%E5%8A%A1%E5%99%A8&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;应用服务器\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;应用服务器&quot; data-pretit=&quot;应用服务器&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;应用服务器&lt;/a&gt;和数据库不再同一台服务器上】另外也会消耗应用服务器的 CPU和内存资源。通常企业不允许使用 SELECT * 语句进行查询。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_13&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;二、是否扫描了额外的记录&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;在确定查询只返回需要的数据以后，接下来应该查看查询是否扫描了过多的数据。对于 MySQL，最简单的衡量查询开销的三个指标是响应时间、扫描的行数、返回的行数：这三个指标都会记录到慢日志【SHOW VARIABLES LIKE “%slow%”;】中。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【1】响应时间：&lt;/span&gt;&amp;nbsp;服务时间和排队时间之和，服务时间是指数据库处理这个查询真正花费的时间。排队时间是指服务器因为等待某些资源而没有真正执行查询的时间（等待I/O操作或锁，等等）。遗憾的是无法将响应时间细分到上面这些部分。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【2】扫描的行数和返回的行数：&lt;/span&gt;&amp;nbsp;分析查询时，查看该查询扫描的行数是非常有帮助的。但并不是所有的行的访问代价都是相同的。较短的行访问速度快，内存中的行也比磁盘中的行的访问速度要快很多。理想情况下扫描的行数和返回的行数应该是相同的。但这种情况并不多。例如在做一个关联查询时，服务器必须要扫描多行才能生成结果集中的一行。扫描的行数对返回的行数的比率通常很小，以便在1:1和10:1之间，不过有时候这个值也可能非常非常大。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【3】扫描的行数和访问类型：&lt;/span&gt;&amp;nbsp;在评估查询开销的时候，需要考虑一下从表中找到某一行数据的成本。MySQL 有好几种查询方式可以查找并返回一行结果。有些访问方式可能需要扫描多行才能返回一行结果，也有些访问方式可能无需扫描就能返回结果。在EXPLAN 语句中的 type 列反映了访问类型。从全表扫描、索引扫描、范围扫描、唯一索引查询、常数引用等。速度从慢到快，扫描的行数也是从多到少。如果查询没有办法找到合适的访问类型，那么解决的最好办法就是添加一个合适的索引。索引让 MySQL 以最高效、扫描行数最少的方式找到需要的记录。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【4】如果发现查询需要扫描大量的数据但只返回少数行：&lt;/span&gt;&amp;nbsp;通常可以使用如下技巧去优化它：①、使用索引覆盖扫描，把所有需要的列都放到索引中，这样存储引擎无需回表获取对应行就可以返回结果了。②、改变表结构。例如使用单独的汇总表。③、重写这个复杂的查询，让 MySQL 优化器能够以更优化的方式执行这个查询。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_OR__20&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;三、一个复杂查询 OR 多个简单查询&lt;/h3&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; padding: 16px; margin: 0px 0px 24px; border-left-width: 8px; border-left-style: solid; overflow: auto; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; user-select: auto !important; color: rgb(180, 180, 180) !important; border-color: rgb(64, 64, 65) !important; background: rgb(46, 47, 48) !important; word-break: break-word !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; line-height: 22px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;有时候，可以将查询转换一种写法让其返回一样的结果，但是性能更好。但也可以通过修改应用代码，用另一种方式完成查询，达到最后的目的。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;设计查询的时候需要考虑一个重要问题，是否需要将一个复杂的查询分成多个简单的查询。在传统的实现中，总是强调需要数据库层完成尽可能多的工作，这样做逻辑在于以前总是认为网络通信、查询解析和优化是一件代价很高的事情。对于MySQL 并不适用，MySQL 从设计上让连接和断开连接都是轻量级， 在返回一个小的查询结果很高效。现在的网络速度比以前也快很多，无论是宽带还是延迟。即使一个通用的服务器上，也能够运行每秒超过10万的查询。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_26&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;四、切分查询&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;有时候对于一个大查询我们需要 “分而治之” 将大查询切分成小查询，每个查询功能完全一样，只是完成一小部分，每次只返回一小部分查询结果。删除旧的数据就是一个很好的例子。定期地清除大量数据时，如果用一个大的语句一次性完成的话，则可能需要一次性锁住很多数据、占满整个事务日志，耗尽系统资源、阻塞很多小的但重要的查询。将一个大的DELETE 切分成多个较小的查询可以尽可能小地影响 MySQL 性能，同时还可以减少 MySQL 的复制延迟。一秒删除一万行数据一般来说是一个比较高效而且对服务器影响也比较小的做法。如果每次删除数据后，都暂停一会儿再做下一次删除，这样也可以将服务器上原本一次性的压力分散到一个很长的时间段中，就可以大大降低对服务器的影响，还可以大大降低删除时锁的持有时间。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_29&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;五、分解关联查询&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;很多高性能的应用都会对关联查询进行分解。可以对每一个表进行一次单表查询，然后将结果在应用程序中进行关联。如下：&lt;/p&gt;&lt;pre data-index=&quot;0&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures; color: rgb(180, 180, 180) !important;&quot;&gt;SELECT&amp;nbsp;*&amp;nbsp;FROM&amp;nbsp;teacher&amp;nbsp;tJOIN&amp;nbsp;student&amp;nbsp;s&amp;nbsp;ON&amp;nbsp;t.id&amp;nbsp;=&amp;nbsp;s.t_idJOIN&amp;nbsp;class&amp;nbsp;c&amp;nbsp;ON&amp;nbsp;t.id&amp;nbsp;=&amp;nbsp;c.t_idWHERE&amp;nbsp;t.name=&amp;#39;Li&amp;#39;;--拆分后SELECT&amp;nbsp;*&amp;nbsp;FROM&amp;nbsp;teacher&amp;nbsp;t&amp;nbsp;WHERE&amp;nbsp;t.name=&amp;#39;Li&amp;#39;;SELECT&amp;nbsp;*&amp;nbsp;FROM&amp;nbsp;student&amp;nbsp;s&amp;nbsp;WHERE&amp;nbsp;s.id&amp;nbsp;=&amp;nbsp;12;SELECT&amp;nbsp;*&amp;nbsp;FROM&amp;nbsp;class&amp;nbsp;c&amp;nbsp;WHERE&amp;nbsp;c.id&amp;nbsp;IN&amp;nbsp;(13,45,65);12345678&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;用分解关联查询的方式重构查询有如下的优势：&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;【1】让缓存的效果更高，许多应用程序可以方便地缓存单表查询对应的结果对象。例如，上面的 teacher 已经被缓存了，那么应用就跳过了第一个查询，再例如，应用程序中已经缓存了 ID 为 12、45 的内容，那么第三个查询的 IN() 中就可以少几个 ID。另外，对于MySQL 的查询缓存来说，如果关联中某个表发生了变化，那么就无法使用查询缓存了，而拆分后，如果某个表很少改变，那么基于该表的查询就可以重复利用查询缓存结果了。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;【2】将查询分解后，执行单个查询就可以减少锁的竞争。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;【3】在应用层做关联，可以更容易对数据库进行拆分，更容易做到高性能和可扩展。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;【4】查询本身效率也可能有所提升。这个例子中，使用 IN() 代替关联查询，可以让 MySQL 按照ID 顺序进行查询，这可能比随机的关联要更高效。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;【5】可以减少冗余记录的查询。在应用层做关联查询，意味着对于某条记录应用只需要查询一次，而在数据库中做关联查询，则可能需要重复地访问一部分数据。这样的重构还可能会减少网络和内存的消耗。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;【6】这样做相当于在应用中实现了哈希关联，而不是使用 MySQL 的嵌套循环关联。某些场景哈希关联效率要高很多。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t5&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;UNION__49&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;六、UNION 的限制&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;MySQL 无法将外层限制条件延续到内层，这使得原本可以返回部分结果的条件无法应用到内部查询的优化上。如果希望 UNION 的各个子句根据 LIMIT 只取部分结果集，或者希望能够先排好序再合并结果集的话，就需要在 UNION 的各个子句中分别使用这些子句。例如，想将两个子查询结果联合起来，然后再取前20条记录，那么MySQL 会将两个表都存放到同一个临时表中，然后再取出前20行记录：&lt;/p&gt;&lt;pre data-index=&quot;1&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures; color: rgb(180, 180, 180) !important;&quot;&gt;--UNION&amp;nbsp;操作符选取不同的值。如果允许重复的值，请使用&amp;nbsp;UNION&amp;nbsp;ALL(SELECT&amp;nbsp;first_name,last_name&amp;nbsp;FROM&amp;nbsp;people_A&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;last_name)UNION&amp;nbsp;ALL(SELECT&amp;nbsp;first_name,last_name&amp;nbsp;FROM&amp;nbsp;people_B&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;last_name)LIMIT&amp;nbsp;20;12345&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;这条查询将会把 people_A 中的所有记录和 people_B 的所有记录放在一个临时表中，然后再从临时表中取出前20条。可以通过在 UNION 的两个子查询中分别加上一个 LIMIT 20来减少临时表中的数据：&lt;/p&gt;&lt;pre data-index=&quot;2&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures; color: rgb(180, 180, 180) !important;&quot;&gt;(SELECT&amp;nbsp;first_name,last_name&amp;nbsp;FROM&amp;nbsp;people_A&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;last_name&amp;nbsp;LIMIT&amp;nbsp;20)UNION&amp;nbsp;ALL(SELECT&amp;nbsp;first_name,last_name&amp;nbsp;FROM&amp;nbsp;people_B&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;last_name&amp;nbsp;LIMIT&amp;nbsp;20)LIMIT&amp;nbsp;20;1234&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;现在中间的临时表只会包含40条记录，除了性能考虑之外，在这里还需要注意一点，从临时表中取出数据的顺序并不是一定的，所以如果想获得正确的顺序，还需要加上一个全局的 ORDER BY 和 LIMIT 操作。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;MySQL 总是通过创建并填充临时表的方式来执行 UNION 查询。除非确定需要服务器消除重复的行，否则就一定要使用 UNION ALL，如果没有 ALL 关键字，MySQL 会给临时表加上 DISTINCT 选项，这会导致给整个临时表做唯一性检查。代价非常高。就是有 ALL 关键字，MySQL 仍然会使用临时表存储结果。事实上，MySQL 总是把结果放入临时表，然后再读出来，再返回给&lt;a href=&quot;https://so.csdn.net/so/search?q=%E5%AE%A2%E6%88%B7%E7%AB%AF&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-view=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E5%AE%A2%E6%88%B7%E7%AB%AF&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;客户端\&amp;quot;}&amp;quot;}&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E5%AE%A2%E6%88%B7%E7%AB%AF&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;客户端\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;客户端&quot; data-pretit=&quot;客户端&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;客户端&lt;/a&gt;。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t6&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_COUNT__69&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;七、优化 COUNT() 查询&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;COUNT() 可以统计某个列值的数量，也可以统计行数。在统计列值时要求列值是非空的（不统计NULL）。如果在COUNT() 的括号中制定了列或者表达式，则统计的就是这个表达式有值的结果数。COUNT()的另一个作用是统计行数，当MySQL确认括号内的表达式值不可能为空的时候，实际上就是在统计行数。最简单的就是当我们使用 COUNT(*) 的时候，这种情况它会忽略所有的列直接统计所有的行数。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; padding: 16px; margin: 0px 0px 24px; border-left-width: 8px; border-left-style: solid; overflow: auto; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; user-select: auto !important; color: rgb(180, 180, 180) !important; border-color: rgb(64, 64, 65) !important; background: rgb(46, 47, 48) !important; word-break: break-word !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; line-height: 22px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;MyISAM 的 COUNT() 函数总是非常快，前提是没有任何 WHERE 条件。因为无需实际计算表的行数。MySQL 可以利用存储引擎的特性直接获取这个值。如果 MySQL 知道某个列 col 不可能为 NULL 值，那么内部会将 COUNT(col) 转换成COUNT(*)。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【简单优化】&lt;/span&gt;&amp;nbsp;有时候可以使用 MyISAM 在 COUNT(*) 全表非常快的这个特性，来加速一些特定条件的 COUNT() 查询。比如：&lt;/p&gt;&lt;pre data-index=&quot;3&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures; color: rgb(180, 180, 180) !important;&quot;&gt;SELECT&amp;nbsp;COUNT(*)&amp;nbsp;FROM&amp;nbsp;&amp;nbsp;city&amp;nbsp;WHERE&amp;nbsp;ID&amp;gt;5;1&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;通过 SHOW STATUS 的结果可以看到该查询需要扫描 5000行数据。如果将条件反转，先查找ID小于等于5的城市，然后用总城市减就能获得同样的结果，却可以将扫描数减少到5行以内。&lt;/p&gt;&lt;pre data-index=&quot;4&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures; color: rgb(180, 180, 180) !important;&quot;&gt;--ID&amp;nbsp;是索引，所以会去前5行数据SELECT&amp;nbsp;(SELECT&amp;nbsp;COUNT(*)&amp;nbsp;FROM&amp;nbsp;city)-COUNT(*)&amp;nbsp;FROM&amp;nbsp;&amp;nbsp;city&amp;nbsp;WHERE&amp;nbsp;ID&amp;lt;=5;12&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;通常来说，COUNT() 都需要扫描大量的行才能获得精准的结果，因为是很难优化的。在MySQL 层面还能做的就只有索引覆盖扫描了。如果还不够，就需要考虑修改应用的架构，可以增加汇总表，或者增加类似 memcached 缓存系统。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t7&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_LIMIT__86&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;八、优化 LIMIT 分页&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;在进行分页操作的时候，通常会使用 LIMIT 加上偏移量的办法实现，同时加上合适的 ORDER BY 子句。如果有对应的索引效率会不错，否则，MySQL 要做大量的文件排序操作。有一个问题，当偏移量非常大的时候，例如 LIMIT 10 000,20 这样的查询，这是需要查询10 020条记录然后只返回 20条，前面的10 000条记录都将被抛弃，这样代价太高。优化此类分页查询的最简单办法就是尽可能地使用覆盖索引扫描，而不是查询所有列。对于偏移量大的时候，这样做的效率会提升非常大。例如：&lt;/p&gt;&lt;pre data-index=&quot;5&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow: auto hidden; border: none; line-height: 22px; max-height: unset; overflow-wrap: break-word; background-color: rgb(29, 31, 33); font-variant-ligatures: no-common-ligatures; color: rgb(180, 180, 180) !important;&quot;&gt;SELECT&amp;nbsp;id,description&amp;nbsp;FROM&amp;nbsp;tab&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;title&amp;nbsp;LIMIT&amp;nbsp;10000,20;--使用覆盖索引优化后的语句如下：SELECT&amp;nbsp;f.id,f.description&amp;nbsp;FROM&amp;nbsp;tab&amp;nbsp;f&amp;nbsp;
INNER&amp;nbsp;JOIN&amp;nbsp;(SELECT&amp;nbsp;id&amp;nbsp;FROM&amp;nbsp;tab&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;title&amp;nbsp;LIMIT&amp;nbsp;10000,20)&amp;nbsp;tUSING(id);12345&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;这里的 “延迟关联” 将大大提升查询效率，它让 MySQL 扫描尽量少的页面，获取需要访问的记录后再根据关联列回原表查询需要的所有列。这个技术也可以用于优化关联查询中的 LIMIT 子句。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t8&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_97&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;九、排序优化&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;排序是一个成本很高的操作，所以从性能角度考虑，应尽可能避免排序或者尽可能避免对大量数据进行排序。如果数据量小于 “排序缓冲区” 则在内存中排序，如果数据量大于 “排序缓冲区” 则使用磁盘进行排序 。MySQL 将这一过程统称为 “文件排序：filesort”（前提没有使用索引）。 MySQL 使用内存进行 “快速排序” 操作。如果内存不够排序，那么 MySQL 会先将数据分块，对每个队列的块使用 “快速排序” 进行排序，并将各个块的排序结果存放在磁盘上，然后将各个排好序的块进行合并（merger），最后返回排序结果。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【1】两次传输排序（旧版本使用）：&lt;/span&gt;&amp;nbsp;读取行指针和需要排序的字段，对其进行排序，然后再根据排序结果读取所需要的数据行。需要进行两次传输，既需要从数据表中读取两次数据。第二次读取数据的时候，因为是读取排序列进行排序后的所有记录，这会产生大量的随机 I/O，所以两次数据传输的成本非常高。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【2】单次传输排序（新版本使用）：&lt;/span&gt;&amp;nbsp;先读取排序所需要的列，然后再根据给定的列进行排序，最后直接返回排序结果。因为不需要从数据表中读取两次数据，对于I/O 密集型的应用，这样做的效率高了很多。另外，相比两次传输排序，这个算法只需要一次顺序 I/O 读取所有的数据，而无需任何随机 I/O。缺点是，如果需要返回的数据非常多，非常大，会额外占用大量空间，而这些列对排序本身并没有任何作用。很难说那个算法效率高，当查询需要所有列的总长度不操作参数 max_length_for_sort_data 时，MySQL 使用单次传输排序，可以通过调整该参数来影响 MySQL 排序算法的选择。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;MySQL 在进行文件排序的时候需要使用的临时存储空间可能会比想象的要大得多。在关联查询需要排序时，会分为两种情况来处理这样的文件排序。如果 ORDER BY 子句中的所有列都来自关联的一个表，那么 MySQL 在关联处理第一个表的时候就进行了文件排序。使用 EXPLAN 查看时，看到 Extra 字段会有 “Using filesort” 。另一种情况是 MySQL 都会先将结果存放在一张临时表中，然后在所有关联都结束后，再进行文件排序。EXPLAN 结果是 “Using temporary；Using filesort”，如果包含 LIMIT 的话，LIMIT 也会在排序之后应用。在 MySQL5.6 之后。当使用 LIMIT 子句时，MySQL 不会对所有结果进行排序，而是根据实际情况，选择抛弃不满足条件的结果，然后进行排序。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;&lt;a name=&quot;t9&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_105&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;十、查询状态&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(36, 36, 41); user-select: auto !important; color: rgb(180, 180, 180) !important;&quot;&gt;在分析查询性能的时候，对于一个 MySQL 连接来说，可以通过查看它的状态来观察它正在做什么。最简单的方式是 SHOW FULL PROCESSLIST 命令，该命令返回结果中的 Command 列表示当前的状态。在一个查询的生命周期中，状态会变化多次。MySQL 官方手册中对这些状态值的含义有最权威的解释，如下：&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【1】Sleep：&lt;/span&gt;&amp;nbsp;线程正在等待客户端发送新的请求；&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【2】Query：&lt;/span&gt;&amp;nbsp;线程正在执行查询或将结果发送给客户端；&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【3】Locked：&lt;/span&gt;&amp;nbsp;在 MySQL 服务器层，该线程正在等待表锁。InnoDB的行锁并不会体现在线程状态中；&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【4】Analyzing and statistics：&lt;/span&gt;&amp;nbsp;线程正在收集存储引擎的统计信息，并生成查询的执行计划。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【5】Copying to tmp table [on disk]：&lt;/span&gt;&amp;nbsp;线程正在执行查询，将结果都复制到一个临时表，这种状态一般要么再过 GROUP BY，要么是文件排序操作，或者是 UNION 操作。“on disk” 标记，表示 MySQL 正在讲一个内存临时表放到磁盘上。&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【6】Sorting result：&lt;/span&gt;&amp;nbsp;线程正在对结果进行排序；&lt;br style=&quot;box-sizing: border-box; outline: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;【7】Sending data：&lt;/span&gt;&amp;nbsp;表示多种情况，线程可能在多种状态之间传送数据。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:33:05 +0800</pubDate></item><item><title>Uniapp 原生插件的详细使用步骤（本地插件、云端插件、自制原生插件）</title><link>https://cykcyk.top/?id=6</link><description>&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;一、简介&lt;/h3&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/wangjun5159/article/details/130879319&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;uniapp 基座、标准基座、自定义基座；传统打包、快速安心打包的区别&lt;/a&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a href=&quot;https://uniapp.dcloud.net.cn/plugin/native-plugin.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;原生插件文档&lt;/a&gt;，文档写的很详情，主要支持两种方式：&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;本地插件、云端插件&lt;/code&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/89a1de67b2c60db5001d49410b345a94.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;本地插件、云端插件&lt;/code&gt;&amp;nbsp;都只能&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;只能使用自定义基座&lt;/code&gt;&amp;nbsp;来看效果，每次增删插件都必须要重新打包基座，其实就是将第三方包解析嵌入到包内，然后本地修改的内容跟包内的内容结合达到&lt;a href=&quot;https://so.csdn.net/so/search?q=%E7%83%AD%E6%9B%B4%E6%96%B0&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-view=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E7%83%AD%E6%9B%B4%E6%96%B0&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;热更新\&amp;quot;}&amp;quot;}&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E7%83%AD%E6%9B%B4%E6%96%B0&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;热更新\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;热更新&quot; data-pretit=&quot;热更新&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;热更新&lt;/a&gt;效果，也能实时看到最新效果。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_10&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;二、使用云端插件&lt;/h3&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;在&amp;nbsp;&lt;a href=&quot;https://ext.dcloud.net.cn/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;uni原生插件市场&lt;/a&gt;&amp;nbsp;找一个插件&amp;nbsp;&lt;a href=&quot;https://ext.dcloud.net.cn/plugin?id=36&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;DCloud-RichAlert&lt;/a&gt;，点击&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;购买云打包&lt;/code&gt;，要求填入的包名，例如&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;com.dzm.test&lt;/code&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/2c0eddfa45bc4ed910e77f2bf373ae92.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/990349376e88128962c0facfd4501cc7.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;在购买弹出的&lt;a href=&quot;https://so.csdn.net/so/search?q=%E9%A1%B9%E7%9B%AE&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-view=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E9%A1%B9%E7%9B%AE&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;项目\&amp;quot;}&amp;quot;}&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E9%A1%B9%E7%9B%AE&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;项目\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;项目&quot; data-pretit=&quot;项目&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;项目&lt;/a&gt;列表中，如果没有找到当前项目，可能是没有注册&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;uniapp应用标识&lt;/code&gt;，可以到&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;manifest.json&lt;/code&gt;&amp;nbsp;的基础配置中点击重新获取，可以申请到，有了之后再重新去点击购买就可以找到了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/3c2be3174d6f3518f890b6d4a9fe9d84.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;购买绑定好后，就可以在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;选择云端插件&lt;/code&gt;&amp;nbsp;中勾选使用了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/6621b440ecf40f29d00641e2daecf2ed.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;然后就看下面的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;八、打包自定义基座&lt;/code&gt;，及插件如何使用。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_28&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;三、本地插件使用&lt;/h3&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;本地插件&lt;/code&gt;&amp;nbsp;分为两种情况&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;方式一&lt;/code&gt;：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;在&amp;nbsp;&lt;a href=&quot;https://ext.dcloud.net.cn/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;uni原生插件市场&lt;/a&gt;&amp;nbsp;免费的插件详情页中点击&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;下载for离线打包&lt;/code&gt;&amp;nbsp;下载原生插件（&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;zip 格式&lt;/code&gt;），解压到&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;HBuilderX&lt;/code&gt;&amp;nbsp;的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;项目下的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;nativeplugins&lt;/code&gt;&amp;nbsp;目录（如不存在则创建）。以下是&amp;nbsp;&lt;a href=&quot;https://ext.dcloud.net.cn/plugin?id=36&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;DCloud-RichAlert&lt;/a&gt;&amp;nbsp;插件举例，进入后点击&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;下载离线打包&lt;/code&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;下载解压后，放入项目中后，目录结构如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/5f0ccf3873417bd94828b2f6006731c0.png&quot; alt=&quot;&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;方式二&lt;/code&gt;：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;开发者自己开发&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;原生插件，原生插件开发完成后按指定格式压缩为&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;zip&lt;/code&gt;&amp;nbsp;包，参考&lt;a href=&quot;https://nativesupport.dcloud.net.cn/NativePlugin/course/package&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;uni-app原生插件格式说明文档&lt;/a&gt;。 按上图的格式配置到&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;项目下的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;nativeplugins&lt;/code&gt;&amp;nbsp;目录。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;导入后，在配置中的本地插件中勾选上该插件&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/8d6cacac4172f7a4711b94f8aa874676.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;然后就看下面的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;八、打包自定义基座&lt;/code&gt;，及插件如何使用。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_50&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;八、打包自定义基座&lt;/h3&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;插件增删都需要重新打包自定义基座，通过标准基座运行是无法生效的，会报错找不到哦。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;基座的打包方式顶部有文章介绍，另外，配置打包信息时，如果没有广告配置，可以将下面的广告配置关掉，默认是勾选的。这里是通过&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;云打包&lt;/code&gt;&amp;nbsp;来做的自定义基座，如果会本地打包也是可以的实现的，云打包要排队，本地打包不需要排队。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/94ada218be4712d7bc010a306e69b09b.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/36b71d3266466e2dfe4a2145347bb5b3.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;打包好的基座存放在这里：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/72b7e024f03a4b2271e6257580956793.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/fae86bdbb0f21e9e410bcfe2fdcfb31e.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;基座打包好后，在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;HBuilderX&lt;/code&gt;&amp;nbsp;菜单的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;运行&lt;/code&gt;&amp;nbsp;中将自定义基座运行到手机上，运行的基座也是支持热更新哦。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/ab4f4d49d925c478e3db95da43709b29.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/c298b7ee2271d69ff31a02f6225ed0df.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;使用云插件&amp;nbsp;&lt;a href=&quot;https://ext.dcloud.net.cn/plugin?id=36&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;DCloud-RichAlert&lt;/a&gt;：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;1、在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;vue&lt;/code&gt;&amp;nbsp;页面或&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;nvue&lt;/code&gt;&amp;nbsp;页面引入这个原生插件，不是放顶部引入哦，是放&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; line-height: 22px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 2px; padding: 2px 4px; overflow-wrap: break-word;&quot;&gt;onLoad&lt;/code&gt;&amp;nbsp;之类的生命周期中引入，可以定义一个属性接收。&lt;/p&gt;&lt;pre data-index=&quot;0&quot; class=&quot;set-code-show prettyprint&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; overflow: auto hidden; border: none; line-height: 22px; color: rgb(0, 0, 0); max-height: unset; overflow-wrap: break-word; background-color: rgb(45, 45, 45);&quot;&gt;const&amp;nbsp;dcRichAlert&amp;nbsp;=&amp;nbsp;uni.requireNativePlugin(&amp;#39;DCloud-RichAlert&amp;#39;)&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;2、使用插件&lt;/p&gt;&lt;pre data-index=&quot;1&quot; class=&quot;prettyprint set-code-show&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; overflow: auto hidden; border: none; line-height: 22px; color: rgb(0, 0, 0); max-height: unset; overflow-wrap: break-word; background-color: rgb(45, 45, 45);&quot;&gt;//&amp;nbsp;调用显示dcRichAlert.show({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;position:&amp;nbsp;&amp;#39;bottom&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;title:&amp;nbsp;&amp;quot;提示信息&amp;quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;titleColor:&amp;nbsp;&amp;#39;#FF0000&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;content:&amp;nbsp;&amp;quot;&amp;lt;a&amp;nbsp;href=&amp;#39;https://uniapp.dcloud.io/&amp;#39;&amp;nbsp;value=&amp;#39;Hello&amp;nbsp;uni-app&amp;#39;&amp;gt;uni-app&amp;lt;/a&amp;gt;&amp;nbsp;是一个使用&amp;nbsp;Vue.js&amp;nbsp;开发跨平台应用的前端框架!\n免费的\n免费的\n免费的\n重要的事情说三遍&amp;quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;contentAlign:&amp;nbsp;&amp;#39;left&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;checkBox:&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;title:&amp;nbsp;&amp;#39;不再提示&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isSelected:&amp;nbsp;true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;buttons:&amp;nbsp;[{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;title:&amp;nbsp;&amp;#39;取消&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;title:&amp;nbsp;&amp;#39;否&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;title:&amp;nbsp;&amp;#39;确认&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;titleColor:&amp;nbsp;&amp;#39;#3F51B5&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]},&amp;nbsp;result&amp;nbsp;=&amp;gt;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(result)})&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/1c9a8f659187bcf7ba520639708f28bc.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul class=&quot;pre-numbering list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;p&gt;1&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;2&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;3&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;4&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;5&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;6&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;7&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;8&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;9&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;10&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;11&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;12&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;13&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;14&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;15&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;16&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;17&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;18&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;19&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;20&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;21&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;22&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;1&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;然后重新运行或热更新后都能看到效果&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/img_convert/f9949b69dcfd06254465d4ba8c43f158.png&quot; alt=&quot;image.png&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_AndroidiOS__113&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;九、自制原生插件（需要 Android、iOS 原生开发经验）&lt;/h3&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;下面会自制一个简单的插件作为流程学习。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/zz00008888/article/details/135498859?spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-135498859-blog-132384692.235%5Ev43%5Epc_blog_bottom_relevance_base6&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-135498859-blog-132384692.235%5Ev43%5Epc_blog_bottom_relevance_base6&amp;utm_relevant_index=6#&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;Uniapp 自制 Android 原生插件详细流程【待定】&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/zz00008888/article/details/135498859?spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-135498859-blog-132384692.235%5Ev43%5Epc_blog_bottom_relevance_base6&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-135498859-blog-132384692.235%5Ev43%5Epc_blog_bottom_relevance_base6&amp;utm_relevant_index=6#&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); overflow-wrap: break-word; user-select: auto !important;&quot;&gt;Uniapp 自制 iOS 原生插件详细流程【待定】&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:28:36 +0800</pubDate></item><item><title>uniapp从入门到精通（全网保姆式教程）~ 别再说你不会开发小程序了</title><link>https://cykcyk.top/?id=5</link><description>&lt;article style=&quot;box-sizing: border-box;outline: 0px;position: relative;padding-top: 16px;color: rgb(51, 51, 51);font-family: -apple-system, BlinkMacSystemFont, &amp;#39;Helvetica Neue&amp;#39;, Helvetica, &amp;#39;Segoe UI&amp;#39;, Arial, Roboto, &amp;#39;PingFang SC&amp;#39;, miui, &amp;#39;Hiragino Sans GB&amp;#39;, &amp;#39;Microsoft Yahei&amp;#39;, sans-serif;text-wrap: wrap;user-select: auto !important&quot;&gt;&lt;p id=&quot;main-toc&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 24px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;目录&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t1&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;一、介绍&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t2&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;二、环境搭建（hello world）&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t3&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;2.1 下载HBuilderX&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t4&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;2.2 下载微信开发者工具&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t5&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;2.3 创建uniapp项目&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t6&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;2.4 在浏览器运行&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t7&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;2.5 在微信开发者工具运行&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t8&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;2.6 在手机上运行&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t9&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;三、项目基本目录结构&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t10&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;四、开发规范概述&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t11&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;五、全局配置文件（pages.json）&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t12&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;5.1&amp;nbsp;globalStyle（全局样式）&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 96px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t13&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;导航栏：背景颜色、标题颜色、标题文本&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 96px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t14&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;导航栏：开启下拉刷新、下拉背景、下拉样式&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t15&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;5.2&amp;nbsp;pages（页面路由）&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t16&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;5.3 tabBar&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t17&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;5.4 condition （开发启动模式）&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t18&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;六、创建新页面和页面的配置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t19&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;七、配置tabBar&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t20&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;7.1&amp;nbsp;基本设置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t21&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;7.2 个性化设置&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t22&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;八、组件&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t23&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;8.1 text&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t24&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;8.2&amp;nbsp;icon&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 96px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t25&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;icon&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 96px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t26&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;字体图标&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t27&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;九、页面样式与布局&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t28&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;9.1 尺寸单位&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t29&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;9.2 样式导入&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t30&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&amp;nbsp;9.3 选择器&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t31&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;9.4&amp;nbsp;全局样式与局部样式&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t32&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;9.5 使用sass&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t33&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;十、Vue基本语法复习&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t34&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;十一、uniapp的生命周期&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 96px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t35&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;应用的生命周期&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 96px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t36&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;页面的生命周期&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t37&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;十二、下拉刷新&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t38&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;十三、上拉加载&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t39&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;十四、网络请求&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t40&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;14.1 uni.request(OBJECT)&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t41&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;14.2 二次封装请求对象&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t42&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;十五、数据缓存&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t43&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;15.1 uni.setStorage(OBJECT)&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t44&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;15.2 uni.getStorage(OBJECT)&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t45&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;15.3 uni.removeStorage(OBJECT)&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t46&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;15.4 uni.setStorageSync(KEY,DATA)&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t47&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;15.5 uni.getStorageSync(KEY)&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t48&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;15.6 uni.removeStorageSync(KEY)&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t49&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;十六、图片的上传和预览&lt;/a&gt;&lt;/p&gt;&lt;p id=&quot;&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 2px;margin-left: 48px;padding: 0px 0px 0px 24px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://blog.csdn.net/YuanFudao/article/details/132384692?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171254685416800197021367%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&amp;request_id=171254685416800197021367&amp;biz_id=0&amp;utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-132384692-null-null.142^v100^pc_search_result_base4&amp;utm_term=uniapp&amp;spm=1018.2226.3001.4187#t50&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;16.1 上传&lt;/a&gt;&lt;/p&gt;&lt;hr id=&quot;hr-toc&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px;border-top: none;border-right: none;border-left: none;border-image: initial;border-bottom-style: solid;border-bottom-color: rgb(204, 204, 204);overflow-wrap: break-word;user-select: auto !important&quot;/&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E4%B8%80%E3%80%81%E4%BB%8B%E7%BB%8D&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;一、介绍&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;如果是刚入门小程序的，又或者刚听到这个名词的人，可能跟我之前一样，带着诸多的疑惑。比如：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;什么是uniapp？它和原生微信小程序有什么异同之处？&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;为什么推荐uniapp开发？&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;这里一句话两句话解释了可能还是云里雾里的。我的建议是看看下面这个视频，个人觉得讲的很清楚明白。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://www.bilibili.com/video/BV1pG41177wF&quot; rel=&quot;nofollow&quot; title=&quot;开发微信小程序使用原生开发还是uniapp开发，详细介绍原生小程序与uni-app开发的优缺点_哔哩哔哩_bilibili&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;开发微信小程序使用原生开发还是uniapp开发，详细介绍原生小程序与uni-app开发的优缺点_哔哩哔哩_bilibili&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;----------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;ps：博客中的动图在切换时可能会有残影，并非真实存在，请注意识别。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #956FE7;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;如果对你有帮助，辛苦点个赞👍呗，反正又不花钱~😁&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;----------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E4%BA%8C%E3%80%81%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%EF%BC%88hello%20world%EF%BC%89&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;二、&lt;a href=&quot;https://so.csdn.net/so/search?q=%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;环境搭建\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;环境搭建&quot; data-pretit=&quot;环境搭建&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 3px 8px 0px;padding: 0px 14px 0px 3px;cursor: pointer;color: rgb(252, 85, 49);overflow-wrap: break-word;border-radius: 3px;background-image: url(&amp;#39;../img/iconHighlight.svg&amp;#39;);background-position: right top;background-size: 12px 14px;background-repeat: no-repeat;box-shadow: none;user-select: auto !important&quot;&gt;环境搭建&lt;/a&gt;（hello world）&lt;/h2&gt;&lt;h3 id=&quot;2.1%20%E4%B8%8B%E8%BD%BDHBuilderX&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;2.1 下载HBuilderX&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://www.dcloud.io/hbuilderx.html&quot; rel=&quot;nofollow&quot; title=&quot;HBuilderX-高效极客技巧&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;HBuilderX-高效极客技巧&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;当然你可以选择其他IDE，但是官网推荐HBuilderX，天然整合uniapp。&lt;/p&gt;&lt;h3 id=&quot;2.2%20%E4%B8%8B%E8%BD%BD%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;2.2 下载微信开发者工具&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们要最终打包成微信小程序就必须在微信开发者工具去预览，那么需要下载微信开发者工具了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html&quot; rel=&quot;nofollow&quot; title=&quot;微信开发者工具下载地址与更新日志 | 微信开放文档&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;微信开发者工具下载地址与更新日志 | 微信开放文档&lt;/a&gt;&lt;/p&gt;&lt;h3 id=&quot;2.3%20%E5%88%9B%E5%BB%BAuniapp%E9%A1%B9%E7%9B%AE&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t5&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;2.3 创建&lt;a href=&quot;https://so.csdn.net/so/search?q=uniapp%E9%A1%B9%E7%9B%AE&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=uniapp%E9%A1%B9%E7%9B%AE&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;uniapp项目\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;uniapp项目&quot; data-pretit=&quot;uniapp项目&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 3px 8px 0px;padding: 0px 14px 0px 3px;cursor: pointer;color: rgb(252, 85, 49);overflow-wrap: break-word;border-radius: 3px;background-image: url(&amp;#39;../img/iconHighlight.svg&amp;#39;);background-position: right top;background-size: 12px 14px;background-repeat: no-repeat;box-shadow: none;user-select: auto !important&quot;&gt;uniapp项目&lt;/a&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;HBuilderX下载下来后，直接双击运行HBuilderX.exe文件即可，它是免安装的。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;然后我们新建一个uniapp项目，按照下图操作即可。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;499&quot; src=&quot;https://img-blog.csdnimg.cn/489fd0808989494b85d36805cd262438.png&quot; width=&quot;600&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;然后它会默认生成项目的基本结构。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;392&quot; src=&quot;https://img-blog.csdnimg.cn/6ed398d7040141a39dde187ab36fba06.png&quot; width=&quot;529&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h3 id=&quot;2.4%20%E5%9C%A8%E6%B5%8F%E8%A7%88%E5%99%A8%E8%BF%90%E8%A1%8C&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t6&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;2.4 在浏览器运行&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;207&quot; src=&quot;https://img-blog.csdnimg.cn/c777cd80fddf4305a654be4d6fcfa289.png&quot; width=&quot;645&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;然后第一次运行时，控制台会提示自动去下载相关的插件，下载完成后需要你再次重新运行。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;99&quot; src=&quot;https://img-blog.csdnimg.cn/b356a8378bf04b87b597fb310dc8acf8.png&quot; width=&quot;543&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;100&quot; src=&quot;https://img-blog.csdnimg.cn/3ffde2acdc4d4a9b868a0b6482f068a5.png&quot; width=&quot;536&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;372&quot; src=&quot;https://img-blog.csdnimg.cn/582093baa7e247b690884201efd7770c.png&quot; width=&quot;619&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h3 id=&quot;2.5%20%E5%9C%A8%E5%BE%AE%E4%BF%A1%E5%BC%80%E5%8F%91%E8%80%85%E5%B7%A5%E5%85%B7%E8%BF%90%E8%A1%8C&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t7&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;2.5 在微信开发者工具运行&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;191&quot; src=&quot;https://img-blog.csdnimg.cn/edc05e5d3be74137a2fb1011ccdb5ff3.png&quot; width=&quot;636&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;213&quot; src=&quot;https://img-blog.csdnimg.cn/abcfc8aa5b184d15804d20719dea00de.png&quot; width=&quot;633&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;120&quot; src=&quot;https://img-blog.csdnimg.cn/4cee30e44c654ac4a25f2086aa5dd40a.png&quot; width=&quot;628&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;然后启动测试一下，发现失败了。经过检查它报错的这两项，也没问题啊。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;那么问题可能是出在微信开发者，我们需要进入&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;微信开发者工具-&amp;gt;设置-&amp;gt;安全&lt;/span&gt;，然后把服务的端口号打开。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;219&quot; src=&quot;https://img-blog.csdnimg.cn/1598b577dd5e403985d9807deb780bce.png&quot; width=&quot;395&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;接着重新运行即可。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;403&quot; src=&quot;https://img-blog.csdnimg.cn/656e12369cb94ba1b961e6bf4a798e34.png&quot; width=&quot;505&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h3 id=&quot;2.6%20%E5%9C%A8%E6%89%8B%E6%9C%BA%E4%B8%8A%E8%BF%90%E8%A1%8C&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t8&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;2.6 在手机上运行&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;安卓、ios同理，不过需要用数据线连接上。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;操作类似，感兴趣的可以去试试，这里不再演示了。不过要注意的是ios端麻烦点，好像现在不支持直接运行了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;228&quot; src=&quot;https://img-blog.csdnimg.cn/a99793496a374be8a8435fe2076f8643.png&quot; width=&quot;518&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t9&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h2 id=&quot;%E4%B8%89%E3%80%81%E9%A1%B9%E7%9B%AE%E5%9F%BA%E6%9C%AC%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t10&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;三、项目基本目录结构&lt;/h2&gt;&lt;h4 id=&quot;%E2%80%8B%E7%BC%96%E8%BE%91&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t11&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;img alt=&quot;&quot; height=&quot;308&quot; src=&quot;https://img-blog.csdnimg.cn/2f3f9a8f2c6140d4807bffa15e0b0ef6.png&quot; width=&quot;672&quot; style=&quot;box-sizing: border-box;outline: none;border: 0px;margin: 24px 0px 8px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in;user-select: auto !important&quot;/&gt;&lt;/h4&gt;&lt;h4 style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t12&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h2 id=&quot;%E5%9B%9B%E3%80%81%E5%BC%80%E5%8F%91%E8%A7%84%E8%8C%83%E6%A6%82%E8%BF%B0&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t13&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;四、开发规范概述&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;为了实现多端兼容，综合考虑编译速度、运行性能等因素，uni-app约定了如下开发规范：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;页面文件遵循Vue单文件组件规范&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;组件标签靠近小程序规范，详细见uni-app组件规范&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;接口能力（js api）靠近微信小程序规范，但需将前缀wx替换为uni，详见uni-app接口规范&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;数据绑定及事件处理同Vue.js规范，同时补充了App以及页面的生命周期&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;为兼容多端运行，建议使用flex布局进行开发&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t14&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h2 id=&quot;%E4%BA%94%E3%80%81%E5%85%A8%E5%B1%80%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%EF%BC%88pages.json%EF%BC%89&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t15&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;五、全局配置文件（pages.json）&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #0D0016;user-select: auto !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;pages.json&lt;/code&gt;&amp;nbsp;&lt;/span&gt;文件用来对 uni-app 进行全局配置，决定页面文件的路径、窗口样式、原生的导航栏、底部的原生tabbar 等。&lt;/p&gt;&lt;h3 id=&quot;5.1%C2%A0globalStyle%EF%BC%88%E5%85%A8%E5%B1%80%E6%A0%B7%E5%BC%8F%EF%BC%89&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t16&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;5.1&amp;nbsp;globalStyle（全局样式）&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;用于设置应用的状态栏、导航条、标题、窗口背景色等。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;ps：以下我都只列举了个人认为比较常见的属性，如果有需要强烈建议去官网看，最全。&lt;/p&gt;&lt;h4 id=&quot;%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9A%E8%83%8C%E6%99%AF%E9%A2%9C%E8%89%B2%E3%80%81%E6%A0%87%E9%A2%98%E9%A2%9C%E8%89%B2%E3%80%81%E6%A0%87%E9%A2%98%E6%96%87%E6%9C%AC&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t17&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;导航栏：背景颜色、标题颜色、标题文本&lt;/h4&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;navigationBarBackgroundColor&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;HexColor&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;#F8F8F8&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;导航栏背景颜色（同状态栏背景色）&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;APP与H5为#F8F8F8，小程序平台请参考相应小程序文档&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;navigationBarTextStyle&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;black&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;导航栏标题颜色及状态栏前景颜色&lt;/span&gt;，仅支持&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #0D0016;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;black/white&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;支付宝小程序不支持，请使用&amp;nbsp;&lt;a href=&quot;https://opendocs.alipay.com/mini/api/xwq8e6&quot; rel=&quot;nofollow&quot; title=&quot;my.setNavigationBar&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;my.setNavigationBar&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;navigationBarTitleText&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;导航栏标题文字内容&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;navigationStyle&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;default&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;导航栏样式，仅支持 default/custom。custom即取消默认的原生导航栏，需看&lt;a href=&quot;https://uniapp.dcloud.net.cn/collocation/pages#customnav&quot; rel=&quot;nofollow&quot; title=&quot;使用注意&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;使用注意&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序 7.0+、百度小程序、H5、App（2.0.3+）&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;演示&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;172&quot; src=&quot;https://img-blog.csdnimg.cn/635918e947f045c4967b9bd195e255c2.png&quot; width=&quot;658&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;397&quot; src=&quot;https://img-blog.csdnimg.cn/4f6122a318ec4684bac96b4d58c73bfa.png&quot; width=&quot;597&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;注意：如果你没有修改完全成功，或者都不生效，可能是设置了页面的配置样式导致的，它会覆盖掉全局样式配置中相同属性的样式。这是因为页面配置优先级高于全局配置。我们删除掉页面配置样式即可。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;213&quot; src=&quot;https://img-blog.csdnimg.cn/d90b0a55576a47feafdd918baa6a77f0.png&quot; width=&quot;524&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;%E5%AF%BC%E8%88%AA%E6%A0%8F%EF%BC%9A%E5%BC%80%E5%90%AF%E4%B8%8B%E6%8B%89%E5%88%B7%E6%96%B0%E3%80%81%E4%B8%8B%E6%8B%89%E8%83%8C%E6%99%AF%E3%80%81%E4%B8%8B%E6%8B%89%E6%A0%B7%E5%BC%8F&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t18&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;导航栏：开启下拉刷新、下拉背景、下拉样式&lt;/h4&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;backgroundColor&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;HexColor&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;#ffffff&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;下拉显示出来的窗口的背景色&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;backgroundTextStyle&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;dark&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;下拉 loading 的样式，仅支持 dark / light&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;enablePullDownRefresh&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;是否开启下拉刷新&lt;/span&gt;，详见&lt;a href=&quot;https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle&quot; rel=&quot;nofollow&quot; title=&quot;页面生命周期&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;页面生命周期&lt;/a&gt;。&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onReachBottomDistance&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;50&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;页面上拉触底事件触发时距页面底部距离，单位只支持px，详见&lt;a href=&quot;https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle&quot; rel=&quot;nofollow&quot; title=&quot;页面生命周期&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;页面生命周期&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;演示&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;130&quot; src=&quot;https://img-blog.csdnimg.cn/c6ceb7e59145415585d46e2106c2ec81.png&quot; width=&quot;380&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;256&quot; src=&quot;https://img-blog.csdnimg.cn/f71b4d146ae242328ac23647e0de6377.gif&quot; width=&quot;297&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;146&quot; src=&quot;https://img-blog.csdnimg.cn/04ba1b948bde4a52ad576c8ee3131e89.png&quot; width=&quot;377&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;257&quot; src=&quot;https://img-blog.csdnimg.cn/3599e0660a8a4a46875e035d57e7c022.gif&quot; width=&quot;299&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;156&quot; src=&quot;https://img-blog.csdnimg.cn/08f82008c95042f4b19e01363ab699aa.png&quot; width=&quot;373&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;247&quot; src=&quot;https://img-blog.csdnimg.cn/0804443987734396a9e595d3e054ddc6.gif&quot; width=&quot;298&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;5.2%C2%A0pages%EF%BC%88%E9%A1%B5%E9%9D%A2%E8%B7%AF%E7%94%B1%EF%BC%89&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t19&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;5.2&amp;nbsp;pages（页面路由）&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;通过 pages 节点配置应用由哪些页面组成，pages 节点接收一个数组，数组每个项都是一个对象，其属性值如下：&amp;nbsp;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;path&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;配置页面路径&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;style&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;配置页面窗口表现，配置项参考下方&amp;nbsp;&lt;a href=&quot;https://uniapp.dcloud.net.cn/collocation/pages#style&quot; rel=&quot;nofollow&quot; title=&quot;pageStyle&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;pageStyle&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;Tips：&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;pages节点的第一项为应用入口页&lt;/span&gt;（即首页）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;应用中新增/减少页面&lt;/span&gt;，都需要对 pages 数组进行修改&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;文件名&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;不需要写后缀&lt;/span&gt;，框架会自动寻找路径下的页面资源&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;例如项目创建时默认生成的：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;171&quot; src=&quot;https://img-blog.csdnimg.cn/1924fb4fa4e24069b51414e6edf370f0.png&quot; width=&quot;614&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;如果不清楚，我将在第六章创建新页面和页面的配置中演示它的使用。&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t20&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h3 id=&quot;5.3%20tabBar&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t21&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;5.3 tabBar&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;如果应用是一个多 tab 应用，可以通过 tabBar 配置项指定一级导航栏，以及 tab 切换时显示的对应页。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;具体请见第七章！&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t22&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h3 id=&quot;5.4%20condition%20%EF%BC%88%E5%BC%80%E5%8F%91%E5%90%AF%E5%8A%A8%E6%A8%A1%E5%BC%8F%EF%BC%89&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t23&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;5.4 condition （开发启动模式）&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;启动模式配置，仅开发期间生效，用于模拟直达页面的场景&lt;/span&gt;，如：小程序转发后，用户点击所打开的页面。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;属性说明：&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;是否必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;current&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;当前激活的模式，list节点的索引值&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;list&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Array&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;启动模式列表&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;list说明：&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;是否必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;name&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;启动模式名称&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;path&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;启动页面路径&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;query&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;启动参数，可在页面的&amp;nbsp;&lt;a href=&quot;https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle&quot; rel=&quot;nofollow&quot; title=&quot;onLoad&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;onLoad&lt;/a&gt;&amp;nbsp;函数里获得&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;注意：&lt;/span&gt;&amp;nbsp;在 App 里真机运行可直接打开配置的页面，微信开发者工具里需要手动改变编译模式。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;演示&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;再创建一个测试页测试一下&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;286&quot; src=&quot;https://img-blog.csdnimg.cn/cb409a7cf0104e96b6785bace247f237.png&quot; width=&quot;650&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;264&quot; src=&quot;https://img-blog.csdnimg.cn/fe2dff35244f4f998551e10a6fde314b.png&quot; width=&quot;360&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;配置condition条件：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;240&quot; src=&quot;https://img-blog.csdnimg.cn/9fd482de65b140c9a027830f05fdcf04.png&quot; width=&quot;420&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;252&quot; src=&quot;https://img-blog.csdnimg.cn/e1d63c6315c6476daa448480226e694a.png&quot; width=&quot;538&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;285&quot; src=&quot;https://img-blog.csdnimg.cn/d5e9a30632c842e7aa30e5d843d7d244.png&quot; width=&quot;631&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%85%AD%E3%80%81%E5%88%9B%E5%BB%BA%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%92%8C%E9%A1%B5%E9%9D%A2%E7%9A%84%E9%85%8D%E7%BD%AE&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t24&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;六、创建新页面和页面的配置&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;可以直接新建页面，也可以先创建目录，再创建文件。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;165&quot; src=&quot;https://img-blog.csdnimg.cn/83de3a07c53240bbbae6c89dad11a708.png&quot; width=&quot;541&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;172&quot; src=&quot;https://img-blog.csdnimg.cn/6ba05d1b5a234ad5b7dbce70c4a80352.png&quot; width=&quot;541&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;294&quot; src=&quot;https://img-blog.csdnimg.cn/dceeeb66fbdc436bbd82243575d35147.png&quot; width=&quot;544&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;158&quot; src=&quot;https://img-blog.csdnimg.cn/a4b86cf76314496aa38f98fc333ac521.png&quot; width=&quot;559&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;然后去pages.json文件中设置页面路径，同时也可以配置一下页面样式。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;247&quot; src=&quot;https://img-blog.csdnimg.cn/82a07bc6e48b413aacb30aca6f8efb8f.png&quot; width=&quot;564&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;完成，我们先通过浏览器打开看看，输入该路径即可看到刚刚创建的页面。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;而且发现它成功覆盖了全局样式的导航栏标题文字。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;347&quot; src=&quot;https://img-blog.csdnimg.cn/228243bd6b9048f59d932a0466c53b40.png&quot; width=&quot;567&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E4%B8%83%E3%80%81%E9%85%8D%E7%BD%AEtabBar&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t25&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;七、&lt;/span&gt;配置tabBar&lt;/h2&gt;&lt;h3 id=&quot;7.1%C2%A0%E5%9F%BA%E6%9C%AC%E8%AE%BE%E7%BD%AE&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t26&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;7.1&amp;nbsp;基本设置&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;Tips&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;当设置&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;position 为 top 时&lt;/span&gt;，将&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;不会显示 icon&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;tabBar 中的&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;list&lt;/span&gt;&amp;nbsp;是一个&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;数组&lt;/span&gt;，只能配置&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;最少2个&lt;/span&gt;、&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;最多5个&lt;/span&gt;&amp;nbsp;tab，tab 按数组的顺序排序。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;tabbar 切换第一次加载时可能渲染不及时，可以在每个tabbar页面的onLoad生命周期里先弹出一个等待雪花（hello uni-app使用了此方式）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;tabbar 的页面展现过一次后就保留在内存中，再次切换 tabbar 页面，只会触发每个页面的onShow，不会再触发onLoad。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;顶部的 tabbar 目前仅微信小程序上支持&lt;/span&gt;。需要用到顶部选项卡的话，&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;不建议&lt;/span&gt;使用 tabbar 的顶部设置，而是&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;自己做&lt;/span&gt;顶部选项卡，可参考 hello uni-app-&amp;gt;模板-&amp;gt;顶部选项卡。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;color&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;HexColor&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;tab 上的文字默认颜色&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;selectedColor&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;HexColor&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;tab 上的文字&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;选中&lt;/span&gt;时的颜色&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;backgroundColor&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;HexColor&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;tab 的背景色&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;borderStyle&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;black&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;tabbar 上边框的颜色，可选值 black/white，也支持其他颜色值&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App 2.3.4+ 、H5 3.0.0+&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;list&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Array&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;tab 的列表，详见 list 属性说明，最少2个、最多5个 tab&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;position&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;bottom&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;可选值 bottom、top&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;overflow: auto hidden;line-height: 22px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;top 值仅微信小程序支持&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;list属性的属性值如下&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;pagePath&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;页面路径，必须在 pages 中先定义&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;text&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;tab 上按钮文字，在 App 和 H5 平台为非必填。例如中间可放一个没有文字的+号图标&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;iconPath&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;图片路径，icon 大小限制为40kb，建议尺寸为 81px * 81px，当 position 为 top 时，此参数无效，不支持网络图片，不支持字体图标&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;selectedIconPath&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;选中时的图片路径，icon 大小限制为40kb，建议尺寸为 81px * 81px ，当 position 为 top 时，此参数无效&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;演示&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;204&quot; src=&quot;https://img-blog.csdnimg.cn/86dcf19a3dc348ffab266024ac7be023.png&quot; width=&quot;335&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;114&quot; src=&quot;https://img-blog.csdnimg.cn/432d39b66a7f4f30bfd1718fb7867fdb.png&quot; width=&quot;345&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;211&quot; src=&quot;https://img-blog.csdnimg.cn/b9bed60944a649d0a172feb10ea65598.png&quot; width=&quot;329&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;618&quot; src=&quot;https://img-blog.csdnimg.cn/1cda615ea17e4e418a46542d128a5238.gif&quot; width=&quot;347&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;163&quot; src=&quot;https://img-blog.csdnimg.cn/494113e7be614603b924c4003f3672bf.png&quot; width=&quot;343&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;193&quot; src=&quot;https://img-blog.csdnimg.cn/9a786cb57bed4f9c8a0788a1843fbc3d.gif&quot; width=&quot;339&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;137&quot; src=&quot;https://img-blog.csdnimg.cn/b27334ae34ec47299b0bc6cf77e08273.png&quot; width=&quot;348&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;85&quot; src=&quot;https://img-blog.csdnimg.cn/a0acc4f01a4b4bfbb4ab64a4388e145e.png&quot; width=&quot;328&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;176&quot; src=&quot;https://img-blog.csdnimg.cn/a87c7d49059e4f66887b322ed26efc12.png&quot; width=&quot;345&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;185&quot; src=&quot;https://img-blog.csdnimg.cn/6746879e79f84dd9a844af3133bcf1f3.png&quot; width=&quot;332&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;203&quot; src=&quot;https://img-blog.csdnimg.cn/52187ce790a84af8a3c655435ef0debf.png&quot; width=&quot;347&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;221&quot; src=&quot;https://img-blog.csdnimg.cn/b5da69ea7ad04134abb31cefd46ad24f.png&quot; width=&quot;330&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;7.2%20%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t27&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;7.2 个性化设置&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们看到很多小程序，它的底部导航栏很多都有哪种中间图标突起的，例如这样：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;185&quot; src=&quot;https://img-blog.csdnimg.cn/19751311e3f24f57b6dc8c8a798a8511.png&quot; width=&quot;407&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;它是怎么做到的呢？&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;其实也是tabbar里面的配置项，midButton属性，和list属性评级即可。&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;midButton&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中间按钮 仅在 list 项为偶数时有效&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App 2.3.4+、H5 3.0.0+&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;midButton 属性说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;描述&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;width&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;80px&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中间按钮的宽度，tabBar 其它项为减去此宽度后平分，默认值为与其它项平分宽度&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;height&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;50px&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中间按钮的高度，可以大于 tabBar 高度，达到中间凸起的效果&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;text&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中间按钮的文字&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;iconPath&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中间按钮的图片路径&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;iconWidth&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;24px&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;图片宽度（高度等比例缩放）&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;backgroundImage&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中间按钮的背景图片路径&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;iconfont&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;字体图标，优先级高于 iconPath&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;具体代码如下：&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;720&quot; src=&quot;https://img-blog.csdnimg.cn/34cc4f9b091a4462af2d23844ae4e600.png&quot; width=&quot;780&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;209&quot; src=&quot;https://img-blog.csdnimg.cn/62a68c4bff3141a29271c7c201b59086.png&quot; width=&quot;331&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;134&quot; src=&quot;https://img-blog.csdnimg.cn/e1c04b19c2a64a22ac3dbddd914b5143.png&quot; width=&quot;351&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;它有个特点，就是目前只支持app、H5，也就是说小程序这些是无法展示的。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;且midButton没有pagePath，需监听点击事件，自行处理点击后的行为逻辑。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;具体可查阅官网：&lt;a href=&quot;https://uniapp.dcloud.net.cn/collocation/pages.html#tabbar&quot; rel=&quot;nofollow&quot; title=&quot;pages.json 页面路由 | uni-app官网&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;pages.json 页面路由 | uni-app官网&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;如果我们希望小程序端也有这个功能怎么办呢？其实可以自定义tabbar，把原生的tabbar隐藏掉。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;具体实现这里就不写了，稍微有些复杂。感兴趣后面自己再搜索相关方法。官网也有相关介绍：&lt;a href=&quot;https://uniapp.dcloud.net.cn/collocation/pages.html#custom-tab-bar&quot; rel=&quot;nofollow&quot; title=&quot;pages.json 页面路由 | uni-app官网&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;pages.json 页面路由 | uni-app官网&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;当然你也可以去uniapp插件市场搜索人家弄好的插件，这样更简单一点，跟着要求一步一步调整即可。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #956FE7;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;后续有时间，我也会专门补充如何自定义设置tabbar。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%85%AB%E3%80%81%E7%BB%84%E4%BB%B6&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t28&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;八、组件&lt;/h2&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;组件是视图层的基本组成单元。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;组件是一个单独且可复用的功能模块的封装。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;直白讲，就是标签。uniapp中除了可以使用html提供的默认标签外，uniapp还封装了一些组件可以使用。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;8.1%20text%C2%A0&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t29&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;8.1 text&amp;nbsp;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;文本组件。用于包裹文本内容。&lt;/p&gt;&lt;p id=&quot;属性说明&quot; style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;属性说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;selectable&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;文本是否可选&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;user-select&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;文本是否可选&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;space&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;显示连续空格&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;钉钉小程序不支持&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;decode&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是否解码&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;百度、钉钉小程序不支持&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;space 值说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;ensp&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中文字符空格一半大小&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;emsp&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;中文字符空格大小&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;nbsp&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;根据字体设置的空格大小&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;165&quot; src=&quot;https://img-blog.csdnimg.cn/d4f600ae31c94146b45faf7d16f66f94.png&quot; width=&quot;296&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;151&quot; src=&quot;https://img-blog.csdnimg.cn/54637586c2cd41ae99b3f0ab59bc4d03.png&quot; width=&quot;386&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;93&quot; src=&quot;https://img-blog.csdnimg.cn/fbe037e9823d4b2e93c0f0b9cb69861c.png&quot; width=&quot;296&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;123&quot; src=&quot;https://img-blog.csdnimg.cn/c6608b020e3a44959836a726d193af4e.png&quot; width=&quot;375&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;117&quot; src=&quot;https://img-blog.csdnimg.cn/2385ac1083054481b0e95c56d5c3d6ef.png&quot; width=&quot;300&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;198&quot; src=&quot;https://img-blog.csdnimg.cn/b66cbbb9680541e99b264c20ba7c9e47.png&quot; width=&quot;376&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;8.2%C2%A0icon&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t30&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;8.2&amp;nbsp;icon&lt;/h3&gt;&lt;h4 id=&quot;icon&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t31&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;icon&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;图标&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;属性说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;属性名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;type&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;icon的类型&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;size&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;23&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;icon的大小，单位px&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;color&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Color&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;icon的颜色，同css的color&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;各平台 type 有效值说明：&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;type 有效值&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App、H5、微信小程序、QQ小程序&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;success, success_no_circle, info, warn, waiting, cancel, download, search, clear&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;支付宝小程序&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;info, warn, waiting, cancel, download, search, clear, success, success_no_circle,loading&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;百度小程序&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;success, info, warn, waiting, success_no_circle, clear, search, personal, setting, top, close, cancel, download, checkboxSelected, radioSelected, radioUnselect&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;演示&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;398&quot; src=&quot;https://img-blog.csdnimg.cn/02e7966106f24406be296405a2ff541c.png&quot; width=&quot;332&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;197&quot; src=&quot;https://img-blog.csdnimg.cn/4a5cc1b781c142409600a5c74113c45f.png&quot; width=&quot;341&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;由于 icon 组件各端表现存在差异，可以通过使用&amp;nbsp;&lt;a href=&quot;https://uniapp.dcloud.net.cn/tutorial/syntax-css.html#%E5%AD%97%E4%BD%93%E5%9B%BE%E6%A0%87&quot; rel=&quot;nofollow&quot; title=&quot;字体图标&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;字体图标&lt;/a&gt;&amp;nbsp;的方式来弥补各端差异。&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t32&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h4 id=&quot;%E5%AD%97%E4%BD%93%E5%9B%BE%E6%A0%87&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t33&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;字体图标&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;另外，uniapp默认提供的图标就这些，如果希望使用个性化的图标，那么就可以使用字体图标。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;uniapp&amp;nbsp;支持使用字体图标，使用方式与普通 web 项目相同，需要注意以下几点：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;支持 base64 格式字体图标。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;支持网络路径字体图标。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;小程序不支持在 css 中使用本地文件，包括本地的背景图和字体文件。需以 base64 方式方可使用。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;网络路径必须加协议头&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;https&lt;/code&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;从&amp;nbsp;&lt;a href=&quot;http://www.iconfont.cn/&quot; rel=&quot;nofollow&quot; title=&quot;http://www.iconfont.cn&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;http://www.iconfont.cn&lt;/a&gt;&amp;nbsp;上拷贝的代码，默认是没加协议头的。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;从&amp;nbsp;&lt;a href=&quot;http://www.iconfont.cn/&quot; rel=&quot;nofollow&quot; title=&quot;http://www.iconfont.cn&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;http://www.iconfont.cn&lt;/a&gt;&amp;nbsp;上下载的字体文件，都是同名字体（字体名都叫 iconfont，安装字体文件时可以看到），在 nvue 内使用时需要注意，此字体名重复可能会显示不正常，可以使用工具修改。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;使用本地路径图标字体需注意：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: circle;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;为方便开发者，在字体文件小于 40kb 时，&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;会自动将其转化为 base64 格式；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;字体文件大于等于 40kb，仍转换为 base64 方式使用的话可能有性能问题，如开发者必须使用，则需自己将其转换为 base64 格式使用，或将其挪到服务器上，从网络地址引用；&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;字体文件的引用路径推荐使用以&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;&amp;nbsp;~@&lt;/span&gt;&amp;nbsp;开头的绝对路径。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;话不多说，我们直接演示&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;281&quot; src=&quot;https://img-blog.csdnimg.cn/5593ff2080904f57a07ce3b98b755372.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;449&quot; src=&quot;https://img-blog.csdnimg.cn/ba33648237e342fa88ef8bd8ae76f9d6.png&quot; width=&quot;188&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;181&quot; src=&quot;https://img-blog.csdnimg.cn/1e19c5cf54e347a08cd0eb8eb287746e.png&quot; width=&quot;493&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;除了html页面其他都复制到项目中，按照如下步骤即可：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;300&quot; src=&quot;https://img-blog.csdnimg.cn/57b04baf41c240b7bde20fb5d2869de0.png&quot; width=&quot;271&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;332&quot; src=&quot;https://img-blog.csdnimg.cn/2ca507ba5fb749e293067d5209ddb749.png&quot; width=&quot;378&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;199&quot; src=&quot;https://img-blog.csdnimg.cn/5c8f290ca46649a2be751025cc86572d.png&quot; width=&quot;650&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;ok，这样就算配置完成了，我们就可以在页面中使用了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;然后我们打开下载下来的文件中的html页面，找到图标对应的字体样式进行使用，使用时去掉前面的&amp;nbsp;&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;号。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;252&quot; src=&quot;https://img-blog.csdnimg.cn/b7d9a81877434a23a6a93e3f75931709.png&quot; width=&quot;596&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;160&quot; src=&quot;https://img-blog.csdnimg.cn/c96c5a4f175940d599578d20768f6725.png&quot; width=&quot;377&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;160&quot; src=&quot;https://img-blog.csdnimg.cn/78c7b0dca4fd4d2092255b45c532ed07.png&quot; width=&quot;275&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;字体图标的颜色、大小等，我们也可以通过css样式去改变。&amp;nbsp;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;问题&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;有时候你会发现你完全按照我的步骤做的，结果在浏览器中可以使用，但是小程序中使用无法显示，且控制台还报错。这个时候要么换种资源，要么去调整一下使用https开头的网络资源。具体的问题具体解决就好了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E4%B9%9D%E3%80%81%E9%A1%B5%E9%9D%A2%E6%A0%B7%E5%BC%8F%E4%B8%8E%E5%B8%83%E5%B1%80&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t34&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;九、页面样式与布局&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;uni-app 的 css 与 web 的 css 基本一致。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;uni-app 有 vue 页面和 nvue 页面。vue 页面是 webview 渲染的、app 端的 nvue 页面是原生渲染的。在 nvue 页面里样式比 web 会限制更多。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;本文重点介绍 vue 页面的样式注意事项。&lt;/p&gt;&lt;h3 id=&quot;尺寸单位&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t35&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;9.1 尺寸单位&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;支持的通用 css 单位包括&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;px、rpx&lt;/span&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;rpx&lt;/span&gt;&lt;/span&gt;即响应式px，一种根据屏幕宽度自适应的动态单位，以750宽的品目为基准，&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;750rpx恰好为屏幕宽度&lt;/span&gt;，&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;屏幕变宽，rpx实际显示效果会等比放大&lt;/span&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;289&quot; src=&quot;https://img-blog.csdnimg.cn/1d820514e8d448e78a9976010d3ffe6b.png&quot; width=&quot;348&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;189&quot; src=&quot;https://img-blog.csdnimg.cn/4d018d13ad5d4c27b8b274ca7ebce83f.png&quot; width=&quot;334&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;204&quot; src=&quot;https://img-blog.csdnimg.cn/eba6a14b5ff3404dbb109e5908528328.png&quot; width=&quot;357&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;214&quot; src=&quot;https://img-blog.csdnimg.cn/02499a20d4a14ed1a6ac961930bc4993.png&quot; width=&quot;306&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;162&quot; src=&quot;https://img-blog.csdnimg.cn/af0acd8e7da645fda0c76f31778a56bc.png&quot; width=&quot;349&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;197&quot; src=&quot;https://img-blog.csdnimg.cn/bf659aff76e64168a33356fd8e9b0459.png&quot; width=&quot;328&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;231&quot; src=&quot;https://img-blog.csdnimg.cn/42d41c5c6f054b0ca101e3cf4c99b9d8.png&quot; width=&quot;350&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;216&quot; src=&quot;https://img-blog.csdnimg.cn/30a0088f737e47a9a7d0d57268fb4904.png&quot; width=&quot;326&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h3 id=&quot;样式导入&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t36&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;9.2 样式导入&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;使用&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;@import&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;语句可以&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;导入外联样式表&lt;/span&gt;，&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;@import&lt;/code&gt;&lt;/span&gt;后跟需要导入的外联样式表的&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;相对路径&lt;/span&gt;，用&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;表示语句结束。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;214&quot; src=&quot;https://img-blog.csdnimg.cn/c29a6008da674456ab96b769923aaf7d.png&quot; width=&quot;502&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;217&quot; src=&quot;https://img-blog.csdnimg.cn/fc5337566ce1421ca4a2981724a05cf2.png&quot; width=&quot;497&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;302&quot; src=&quot;https://img-blog.csdnimg.cn/5ac8ab60a5a6458bbb8c33be267ddeb5.png&quot; width=&quot;497&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;%C2%A09.3%20%E9%80%89%E6%8B%A9%E5%99%A8&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t37&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&amp;nbsp;9.3 选择器&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;目前支持的选择器有：&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;选择器&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;样例&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;样例描述&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;.class&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;.intro&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;选择所有拥有 的组件&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;#id&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;#firstname&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;选择拥有 id=&amp;quot;firstname&amp;quot; 的组件&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;element&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;view&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;选择所有 view 组件&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;element, element&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;view, checkbox&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;选择所有文档的 view 组件和所有的 checkbox 组件&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;::after&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;view::after&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;在 view 组件后边插入内容，&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;仅 vue 页面生效&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;::before&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;view::before&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;在 view 组件前边插入内容，&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;仅 vue 页面生效&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;注意：&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;在&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;中不能使用&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;*&lt;/code&gt;&amp;nbsp;选择器。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;微信小程序自定义组件中仅支持 class 选择器&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;page&lt;/code&gt;&amp;nbsp;相当于&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;body&lt;/code&gt;&amp;nbsp;节点，例如：&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre data-index=&quot;0&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;margin-top: 0px;margin-bottom: 24px;padding: 8px;position: relative;text-wrap: wrap;overflow-wrap: break-word;overflow: auto hidden;font-family: Consolas, Inconsolata, Courier, monospace;font-size: 14px;line-height: 22px;color: rgb(0, 0, 0);max-height: unset&quot;&gt;&amp;lt;!--&amp;nbsp;设置页面背景颜色，使用&amp;nbsp;scoped&amp;nbsp;会导致失效&amp;nbsp;--&amp;nbsp;&amp;gt;page&amp;nbsp;{background-color:&amp;nbsp;#ccc;}&lt;/pre&gt;&lt;h3 id=&quot;9.4%C2%A0%E5%85%A8%E5%B1%80%E6%A0%B7%E5%BC%8F%E4%B8%8E%E5%B1%80%E9%83%A8%E6%A0%B7%E5%BC%8F&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t38&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;9.4&amp;nbsp;全局样式与局部样式&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;定义在&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;&amp;nbsp;App.vue&lt;/span&gt;&amp;nbsp;中的样式为&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;全局样式&lt;/span&gt;，作用于每一个页面。在&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;pages 目录下 的 vue 文件&lt;/span&gt;中定义的样式为&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;局部样式&lt;/span&gt;，只作用在对应的页面，并会覆盖 App.vue 中相同的选择器。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;注意：&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;App.vue 中通过&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;@import&lt;/code&gt;&amp;nbsp;语句可以导入外联样式，一样作用于每一个页面。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;nvue 页面暂不支持全局样式&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;9.5%20%E4%BD%BF%E7%94%A8sass&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t39&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;9.5 使用sass&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们在项目根目录下，可以看到一个&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-scss&lt;/code&gt;&lt;/span&gt;文件。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-scss&lt;/code&gt;&amp;nbsp;是&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-ui&lt;/code&gt;提供的一套全局样式 ，通过一些简单的类名和&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;sass&lt;/code&gt;变量，实现简单的页面布局操作，比如颜色、边距、圆角等。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;那么如何使用sass呢？&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;首先安装sass插件&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;262&quot; src=&quot;https://img-blog.csdnimg.cn/1ceb369601534833b30d1387bb3cda5c.png&quot; width=&quot;439&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;205&quot; src=&quot;https://img-blog.csdnimg.cn/d45c7c975dfa40b7b7583b558dd6ddc8.png&quot; width=&quot;488&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;使用，记得在style标签中加上属性&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;273&quot; src=&quot;https://img-blog.csdnimg.cn/93f2ba306df14faf8e60916a9dc4d2ae.png&quot; width=&quot;375&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;204&quot; src=&quot;https://img-blog.csdnimg.cn/1188e0cdb69045b0819827c635cfa30c.png&quot; width=&quot;307&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%8D%81%E3%80%81Vue%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95%E5%A4%8D%E4%B9%A0&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t40&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;十、Vue基本语法复习&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;uniapp是基于vue进行封装的框架。所以要像使用好它，必须会vue。如果你会vue，那么可以跳过这里不看，如果你不会，那么我会简单跟大家一起学习一下。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;369&quot; src=&quot;https://img-blog.csdnimg.cn/c2d4a315118c45c599a2cb940d8d6084.png&quot; width=&quot;403&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;177&quot; src=&quot;https://img-blog.csdnimg.cn/677781a5167d41c1a309d19ac88cc4ed.png&quot; width=&quot;277&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;301&quot; src=&quot;https://img-blog.csdnimg.cn/e5271f2c9aad46fcb91a3107c29f2fb7.png&quot; width=&quot;410&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;331&quot; src=&quot;https://img-blog.csdnimg.cn/5e7f2a3f14614d2591a4519ef4c6b69d.png&quot; width=&quot;264&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;350&quot; src=&quot;https://img-blog.csdnimg.cn/405f0f16e9d84485b187072e5e3714c1.png&quot; width=&quot;408&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;379&quot; src=&quot;https://img-blog.csdnimg.cn/1907c54815b648e190ac3a036c729e94.png&quot; width=&quot;264&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;263&quot; src=&quot;https://img-blog.csdnimg.cn/a8caebb312b7447c9e584af1df967d7b.png&quot; width=&quot;362&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;194&quot; src=&quot;https://img-blog.csdnimg.cn/01ee9217ef084dd0aea8af8df65f0f10.png&quot; width=&quot;300&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;获取事件对象&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;如果v-on:中方法没有传参数，那么默认拿到的是事件对象&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;只需要在方法上传一个形参即可。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;311&quot; src=&quot;https://img-blog.csdnimg.cn/d406252b14774e92a9fe0de049d58bee.png&quot; width=&quot;500&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;328&quot; src=&quot;https://img-blog.csdnimg.cn/5b050ab54ca047d7830d8575e49d871b.png&quot; width=&quot;660&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;333&quot; src=&quot;https://img-blog.csdnimg.cn/715507735aad452990f4c17345f563d2.png&quot; width=&quot;655&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%8D%81%E4%B8%80%E3%80%81uniapp%E7%9A%84%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t41&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;十一、uniapp的生命周期&lt;/h2&gt;&lt;h4 id=&quot;%E5%BA%94%E7%94%A8%E7%9A%84%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t42&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;应用的生命周期&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle&quot; rel=&quot;nofollow&quot; title=&quot;App.vue/App.uvue | uni-app官网&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;App.vue/App.uvue | uni-app官网&lt;/a&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;生命周期的概念&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;一个对象从创建、运行、销毁的整个过程。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;生命周期函数&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;在生命周期中每个阶段会伴随着函数的触发，这些函数被称为生命周期函数。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-app&lt;/code&gt;支持如下应用生命周期函数&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;函数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onLauch&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;当uni-app初始化完成时触发（全局只触发一次）&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onShow&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;当uni-app启动，或从后台进入前台显示&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onHide&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;当uni-app从前台进入后台&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onError&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;当uni-app报错时触发&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;425&quot; src=&quot;https://img-blog.csdnimg.cn/2c6d12c041804642bac34241fde2ed0c.png&quot; width=&quot;543&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;360&quot; src=&quot;https://img-blog.csdnimg.cn/0f52c3c55ae2448c8edbd35154ec6658.png&quot; width=&quot;546&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;379&quot; src=&quot;https://img-blog.csdnimg.cn/1e257814c18443048133e32ce87997d1.png&quot; width=&quot;556&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;%E9%A1%B5%E9%9D%A2%E7%9A%84%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 18px;color: rgb(79, 79, 79);line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t43&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;页面的生命周期&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle&quot; rel=&quot;nofollow&quot; title=&quot;页面简介 | uni-app官网&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;页面简介 | uni-app官网&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;uni-app&lt;/code&gt;&amp;nbsp;支持如下页面生命周期函数：&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;函数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;最低版本&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onInit&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听页面初始化，其参数同 onLoad 参数，为上个页面传递的数据，参数类型为 Object（用于页面传参），触发时机早于 onLoad&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;百度小程序&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;3.1.0+&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onLoad&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听页面加载，其参数为上个页面传递的数据，参数类型为 Object（用于页面传参），参考&lt;a href=&quot;https://uniapp.dcloud.net.cn/api/router#navigateto&quot; rel=&quot;nofollow&quot; title=&quot;示例&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;示例&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onShow&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听页面显示。页面每次出现在屏幕上都触发，包括从下级页面点返回露出当前页面&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onReady&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听页面初次渲染完成。注意如果渲染速度快，会在页面进入动画完成前触发&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onHide&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听页面隐藏&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onUnload&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听页面卸载&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onResize&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听窗口尺寸变化&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App、微信小程序、快手小程序&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onPullDownRefresh&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;监听用户下拉动作，一般用于下拉刷新，参考&lt;a href=&quot;https://uniapp.dcloud.net.cn/api/ui/pulldown&quot; rel=&quot;nofollow&quot; title=&quot;示例&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;示例&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onReachBottom&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;页面滚动到底部的事件（不是scroll-view滚到底），常用于下拉下一页数据。具体见下方注意事项&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;onTabItemTap&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;点击 tab 时触发，参数为Object，具体见下方注意事项&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序、QQ小程序、支付宝小程序、百度小程序、H5、App、快手小程序、京东小程序&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;501&quot; src=&quot;https://img-blog.csdnimg.cn/9a2e14cb18914ca0a10eb9c475c84e87.png&quot; width=&quot;621&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;349&quot; src=&quot;https://img-blog.csdnimg.cn/d963d59d9b934b0e96d86b4e738c20d8.png&quot; width=&quot;635&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;158&quot; src=&quot;https://img-blog.csdnimg.cn/5081a327a4c646fb8df16ed335d37423.png&quot; width=&quot;416&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;541&quot; src=&quot;https://img-blog.csdnimg.cn/8e3c542bc8ad4332aa8aef052b08bb9f.png&quot; width=&quot;601&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;357&quot; src=&quot;https://img-blog.csdnimg.cn/720aa593f71d42479cc7a251b18bd596.png&quot; width=&quot;624&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们最小化页面，然后打开&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;397&quot; src=&quot;https://img-blog.csdnimg.cn/078faf2d9321465eb09ae7c25ecd361e.png&quot; width=&quot;632&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们从tabBar切换，也是一样的道理。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%8D%81%E4%BA%8C%E3%80%81%E4%B8%8B%E6%8B%89%E5%88%B7%E6%96%B0&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t44&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;十二、下拉刷新&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;前面讲过下拉刷新的一种方式，是通过全局配置。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;但是我们不推荐，我们希望那个页面有需要就开启，没有需要不要开启。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;212&quot; src=&quot;https://img-blog.csdnimg.cn/978730337c0d4cbaac2aacb27f47c897.png&quot; width=&quot;586&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们希望下拉刷新了触发一些事件&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;只需要通过onPullDownRefresh函数即可。在前面页面的生命周期函数中有列举过。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;425&quot; src=&quot;https://img-blog.csdnimg.cn/cc19e2a6d5c648599d5efac272b61311.png&quot; width=&quot;537&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;299&quot; src=&quot;https://img-blog.csdnimg.cn/f02886fe4c5c4160a0bb2ef6460cb175.gif&quot; width=&quot;538&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;一旦刷新完成之后，我们就可以通过uni.stopPullDownRefresh();关闭&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;408&quot; src=&quot;https://img-blog.csdnimg.cn/ad85a138de09465f92d4f85d708824a4.png&quot; width=&quot;580&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;417&quot; src=&quot;https://img-blog.csdnimg.cn/4973a94739324f308a8d158562b2c08e.gif&quot; width=&quot;543&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%8D%81%E4%B8%89%E3%80%81%E4%B8%8A%E6%8B%89%E5%8A%A0%E8%BD%BD&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t45&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;十三、上拉加载&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;757&quot; src=&quot;https://img-blog.csdnimg.cn/08032bbbc2d546869a18477e8c491a89.png&quot; width=&quot;910&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;795&quot; src=&quot;https://img-blog.csdnimg.cn/2a5e1522803a45dfabbbe9c72172902c.gif&quot; width=&quot;692&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们发现还没有触底就开始说触底了，这是因为有默认的触底距离 。我们可以设置默认触底距离&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;330&quot; src=&quot;https://img-blog.csdnimg.cn/3c9e257c1b7d4abaa1b40c38df5800f3.png&quot; width=&quot;875&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;然后再来测试一下就好了。这里不演示了。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;触底之后，我们可以给他加载下一页数据。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;222&quot; src=&quot;https://img-blog.csdnimg.cn/63bcfaa88f3a459494143012a42cf58c.png&quot; width=&quot;882&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;526&quot; src=&quot;https://img-blog.csdnimg.cn/02d87a63d3b3455d8210ff9d096f4082.gif&quot; width=&quot;516&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%8D%81%E5%9B%9B%E3%80%81%E7%BD%91%E7%BB%9C%E8%AF%B7%E6%B1%82&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t46&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;十四、网络请求&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;a href=&quot;https://uniapp.dcloud.net.cn/api/request/request.html&quot; rel=&quot;nofollow&quot; title=&quot;uni.request(OBJECT) | uni-app官网&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;uni.request(OBJECT) | uni-app官网&lt;/a&gt;&lt;/p&gt;&lt;h3 id=&quot;14.1%20uni.request(OBJECT)&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t47&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;14.1 uni.request(OBJECT)&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;发起网络请求。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;在各个小程序平台运行时，网络相关的 API 在使用前需要配置域名白名单。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;OBJECT 参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;默认值&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;url&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开发者服务器接口地址&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;data&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object/String/ArrayBuffer&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;请求的参数&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App 3.3.7 以下不支持 ArrayBuffer 类型&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;header&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;设置请求的 header，header 中不能设置 Referer&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App、H5端会自动带上cookie，且H5端不可手动修改&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;method&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;GET&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;有效值详见下方说明&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;timeout&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;60000&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;超时时间，单位 ms&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序（2.10.0）、支付宝小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;dataType&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;json&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;如果设为 json，会尝试对返回的数据做一次 JSON.parse&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;responseType&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;text&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;设置响应的数据类型。合法值：text、arraybuffer&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;支付宝小程序不支持&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;sslVerify&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;true&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;验证 ssl 证书&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;仅App安卓端支持（HBuilderX 2.3.3+），不支持离线打包&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;withCredentials&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;跨域请求时是否携带凭证（cookies）&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;仅H5支持（HBuilderX 2.6.15+）&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;firstIpv4&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;DNS解析时优先使用ipv4&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;仅 App-Android 支持 (HBuilderX 2.8.0+)&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;enableHttp2&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开启 http2&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;enableQuic&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开启 quic&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;enableCache&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开启 cache&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序、字节跳动小程序 2.31.0+&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;enableHttpDNS&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是否开启 HttpDNS 服务。如开启，需要同时填入 httpDNSServiceId 。 HttpDNS 用法详见&amp;nbsp;&lt;a href=&quot;https://developers.weixin.qq.com/miniprogram/dev/framework/ability/HTTPDNS.html&quot; rel=&quot;nofollow&quot; title=&quot;移动解析HttpDNS&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;移动解析HttpDNS&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;httpDNSServiceId&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;HttpDNS 服务商 Id。 HttpDNS 用法详见&amp;nbsp;&lt;a href=&quot;https://developers.weixin.qq.com/miniprogram/dev/framework/ability/HTTPDNS.html&quot; rel=&quot;nofollow&quot; title=&quot;移动解析HttpDNS&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;移动解析HttpDNS&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;enableChunked&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开启 transfer-encoding chunked&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;forceCellularNetwork&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;wifi下使用移动网络发送请求&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;微信小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;enableCookie&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开启后可在headers中编辑cookie&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;支付宝小程序 10.2.33+&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;cloudCache&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object/Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是否开启云加速（详见&lt;a href=&quot;https://smartprogram.baidu.com/docs/develop/extended/component-codeless/cloud-speed/introduction/&quot; rel=&quot;nofollow&quot; title=&quot;云加速服务&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;云加速服务&lt;/a&gt;）&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;百度小程序 3.310.11+&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;defer&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;false&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;控制当前请求是否延时至首屏内容渲染后发送&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;百度小程序 3.310.11+&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;success&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;收到开发者服务器成功返回的回调函数&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;fail&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用失败的回调函数&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;complete&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用结束的回调函数（调用成功、失败都会执行）&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;method 有效值&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;注意：method有效值必须大写，每个平台支持的method有效值不同，详细见下表。&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;method&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;App&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;H5&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;微信小程序&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;支付宝小程序&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;百度小程序&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;字节跳动小程序、飞书小程序&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;快手小程序&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;京东小程序&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;GET&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;POST&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;PUT&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;DELETE&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;CONNECT&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;HEAD&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;OPTIONS&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;TRACE&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;√&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;x&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;success 返回参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;data&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object/String/ArrayBuffer&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开发者服务器返回的数据&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;statusCode&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开发者服务器返回的 HTTP 状态码&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;header&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开发者服务器返回的 HTTP Response Header&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;cookies&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;Array.&amp;lt;string&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;开发者服务器返回的 cookies，格式为字符串数组&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;data 数据说明&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;最终发送给服务器的数据是 String 类型，如果传入的 data 不是 String 类型，会被转换成 String。转换规则如下：&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;对于&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;GET&lt;/code&gt;&amp;nbsp;方法，会将数据转换为 query string。例如&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;{ name: &amp;#39;name&amp;#39;, age: 18 }&lt;/code&gt;&amp;nbsp;转换后的结果是&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;name=name&amp;amp;age=18&lt;/code&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;对于&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;POST&lt;/code&gt;&amp;nbsp;方法且&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;header[&amp;#39;content-type&amp;#39;]&lt;/code&gt;&amp;nbsp;为&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;application/json&lt;/code&gt;&amp;nbsp;的数据，会进行 JSON 序列化。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;对于&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;POST&lt;/code&gt;&amp;nbsp;方法且&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;header[&amp;#39;content-type&amp;#39;]&lt;/code&gt;&amp;nbsp;为&amp;nbsp;&lt;code style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;border-radius: 4px;overflow-wrap: break-word&quot;&gt;application/x-www-form-urlencoded&lt;/code&gt;&amp;nbsp;的数据，会将数据转换为 query string。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;测试&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们先用springboot搞一个测试接口。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;418&quot; src=&quot;https://img-blog.csdnimg.cn/168d089bdd3e46749476678f49af4216.png&quot; width=&quot;489&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;490&quot; src=&quot;https://img-blog.csdnimg.cn/a8bb9718303146f5a430270eb757362e.png&quot; width=&quot;1097&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&amp;nbsp;接口没有问题，然后我们试一试&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;920&quot; src=&quot;https://img-blog.csdnimg.cn/933def4bf61949d9b9909bb293b9af63.png&quot; width=&quot;1079&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;795&quot; src=&quot;https://img-blog.csdnimg.cn/42d03b2cb5444a1082ef727bf70a2d9d.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;ok，搞定&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们发现一个问题，就是小程序内部运行机制与网页不同，小程序中的代码并不运行在浏览器中，因为小程序开发中，不存在数据的跨域请求限制。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;所以我们不做跨域处理也可以访问。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;问题&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;如果微信开发者工具中，没有发送成功，可以试试如下方法。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;607&quot; src=&quot;https://img-blog.csdnimg.cn/65109dbd778b45a7ae9117ea651248bc.png&quot; width=&quot;418&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;14.2%20%E4%BA%8C%E6%AC%A1%E5%B0%81%E8%A3%85%E8%AF%B7%E6%B1%82%E5%AF%B9%E8%B1%A1&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t48&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;14.2 二次封装请求对象&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;如果像上面那样，每次调用我都要去写请求的ip地址端口号，显得有些麻烦。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;假如说ip地址或者端口号变了，那就得每一个请求都要逐一修改，这是很恐怖的！&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;所以，我们需要统一进行二次封装，对这些公共的参数统一进行设置或者修改。减少冗余，提高效率。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;request.js&lt;/p&gt;&lt;/blockquote&gt;&lt;pre data-index=&quot;1&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box;outline: 0px;user-select: auto;margin-top: 0px;margin-bottom: 24px;padding: 8px;position: relative;text-wrap: wrap;overflow-wrap: break-word;overflow: auto hidden;font-family: Consolas, Inconsolata, Courier, monospace;font-size: 14px;line-height: 22px;color: rgb(0, 0, 0);max-height: unset&quot;&gt;const&amp;nbsp;BASE_URL&amp;nbsp;=&amp;nbsp;&amp;#39;http://localhost:8000&amp;#39;export&amp;nbsp;const&amp;nbsp;myRequest&amp;nbsp;=&amp;nbsp;(options)&amp;nbsp;=&amp;gt;&amp;nbsp;{return&amp;nbsp;new&amp;nbsp;Promise((resove,reject)=&amp;gt;{uni.request({url:&amp;nbsp;BASE_URL&amp;nbsp;+&amp;nbsp;options.url,method:&amp;nbsp;options.method&amp;nbsp;||&amp;nbsp;&amp;#39;GET&amp;#39;,data:&amp;nbsp;options.data&amp;nbsp;||&amp;nbsp;{},success:&amp;nbsp;(res)&amp;nbsp;=&amp;gt;&amp;nbsp;{if(res.data.code&amp;nbsp;!=&amp;nbsp;1){return&amp;nbsp;uni.showToast({title:&amp;#39;获取数据失败&amp;#39;})}resove(res)},fail:&amp;nbsp;(err)&amp;nbsp;=&amp;gt;&amp;nbsp;{uni.showToast({title:&amp;#39;请求接口失败&amp;#39;}),reject(err)}})})}&lt;/pre&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;main.js&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;247&quot; src=&quot;https://img-blog.csdnimg.cn/fb9880c4d7604a71871c65b995b2ffab.png&quot; width=&quot;567&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;测试：编写页面调接口&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;这次我们换个接口试试&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;（哈哈，其实上面的那个接口是我年初写的，现在找不到代码了，自己重写😂）&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;397&quot; src=&quot;https://img-blog.csdnimg.cn/0e5eac40f851401badc2545a4906407e.png&quot; width=&quot;608&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;1135&quot; src=&quot;https://img-blog.csdnimg.cn/491b4f4b6c3a4285a407dc261ab70969.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;我们尝试关闭接口，再次刷新页面发现页面显示：请求接口失败。ok，完全符合。&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;362&quot; src=&quot;https://img-blog.csdnimg.cn/7a7e3cc80b4e44aca53a3e7ec8268a59.png&quot; width=&quot;637&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;又因为我们的请求是通过Promise返回的，所以我们可以异步的去调用方法。稍微修改一下，也能成功获取到。（记得重启后端项目哦😆）&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;211&quot; src=&quot;https://img-blog.csdnimg.cn/770e4e0c85574d52b457464af2d4badc.png&quot; width=&quot;561&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;294&quot; src=&quot;https://img-blog.csdnimg.cn/f35d9d5ee30f4b78a57b2ffa701ad947.png&quot; width=&quot;624&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%8D%81%E4%BA%94%E3%80%81%E6%95%B0%E6%8D%AE%E7%BC%93%E5%AD%98&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t49&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;十五、数据缓存&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;394&quot; src=&quot;https://img-blog.csdnimg.cn/250c254a0cc14ffa888dc327606a40fe.png&quot; width=&quot;230&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;15.1%20uni.setStorage(OBJECT)&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t50&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;color: #0D0016;overflow-wrap: break-word;user-select: auto !important&quot;&gt;15.1 uni.setStorage(OBJECT)&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;将&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;数据存储在本地缓存中指定的 key 中&lt;/span&gt;，会&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;覆盖掉原来该 key 对应的内容&lt;/span&gt;，这是一个&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;异步接口&lt;/span&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;OBJECT 参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;key&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;本地缓存中的指定的 key&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;data&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Any&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;需要存储的内容，只支持原生类型、及能够通过 JSON.stringify 序列化的对象&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;success&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用成功的回调函数&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;fail&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用失败的回调函数&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;complete&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用结束的回调函数（调用成功、失败都会执行）&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;551&quot; src=&quot;https://img-blog.csdnimg.cn/dba6a448e5b64460a89634eec03c36e3.png&quot; width=&quot;563&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;370&quot; src=&quot;https://img-blog.csdnimg.cn/258a3de811bd4aa28c7a9f02f48e4e37.png&quot; width=&quot;1156&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;190&quot; src=&quot;https://img-blog.csdnimg.cn/f24deb441e6340ad946799799e34e424.png&quot; width=&quot;675&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;239&quot; src=&quot;https://img-blog.csdnimg.cn/b5340160de5b46288577821d32736299.png&quot; width=&quot;664&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;208&quot; src=&quot;https://img-blog.csdnimg.cn/263f3bea551c4334aff42a6e7676c038.png&quot; width=&quot;661&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;15.2%20uni.getStorage(OBJECT)&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t51&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;15.2 uni.getStorage(OBJECT)&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;从本地缓存中异步&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #FE2C24;user-select: auto !important&quot;&gt;获取指定 key 对应的内容&lt;/span&gt;。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;OBJECT 参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;key&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;本地缓存中的指定的 key&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;success&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用的回调函数，res = {data: key对应的内容}&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;fail&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用失败的回调函数&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;complete&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用结束的回调函数（调用成功、失败都会执行）&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;success 返回参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;data&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Any&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;key 对应的内容&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;545&quot; src=&quot;https://img-blog.csdnimg.cn/cfa3bf26dc244534bb6062610f0ecfba.png&quot; width=&quot;571&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;211&quot; src=&quot;https://img-blog.csdnimg.cn/4af781886f714a73bdff42b1d1c6a962.png&quot; width=&quot;638&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;15.3%20uni.removeStorage(OBJECT)&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t52&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;15.3 uni.removeStorage(OBJECT)&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;从本地缓存中异步移除指定 key。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;OBJECT 参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;key&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;本地缓存中的指定的 key&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;success&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用的回调函数&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;fail&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用失败的回调函数&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;complete&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用结束的回调函数（调用成功、失败都会执行）&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;654&quot; src=&quot;https://img-blog.csdnimg.cn/895e3c33067e4a95ac74b38698557869.png&quot; width=&quot;635&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;233&quot; src=&quot;https://img-blog.csdnimg.cn/f32b7d7c454c47da97ab1d76c0b0fd21.png&quot; width=&quot;639&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;237&quot; src=&quot;https://img-blog.csdnimg.cn/e75cd613e9d847648cd86ed5da01e709.png&quot; width=&quot;638&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;15.4%20uni.setStorageSync(KEY%2CDATA)&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t53&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;15.4 uni.setStorageSync(KEY,DATA)&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;将 data 存储在本地缓存中指定的 key 中，会覆盖掉原来该 key 对应的内容，这是一个同步接口。&lt;/p&gt;&lt;h3 id=&quot;15.5%20uni.getStorageSync(KEY)&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t54&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;15.5 uni.getStorageSync(KEY)&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;从本地缓存中同步获取指定 key 对应的内容。&lt;/p&gt;&lt;h3 id=&quot;15.6%20uni.removeStorageSync(KEY)&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t55&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;15.6 uni.removeStorageSync(KEY)&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;从本地缓存中同步移除指定 key。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 id=&quot;%E5%8D%81%E5%85%AD%E3%80%81%E5%9B%BE%E7%89%87%E7%9A%84%E4%B8%8A%E4%BC%A0%E5%92%8C%E9%A2%84%E8%A7%88&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 22px;color: rgb(79, 79, 79);line-height: 32px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t56&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;十六、图片的上传和预览&lt;/h2&gt;&lt;h3 id=&quot;16.1%20%E4%B8%8A%E4%BC%A0&quot; style=&quot;box-sizing: border-box;outline: 0px;margin: 24px 0px 8px;padding: 0px;font-family: &amp;#39;PingFang SC&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, SimHei, Arial, SimSun;font-size: 20px;color: rgb(79, 79, 79);line-height: 30px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;a name=&quot;t57&quot; style=&quot;box-sizing: border-box;outline: none;margin: 24px 0px 8px;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;/a&gt;16.1 上传&lt;/h3&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;uni.chooseImage(OBJECT)&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;从本地相册选择图片或使用相机拍照。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;App端如需要更丰富的相机拍照API（如直接调用前置摄像头），参考&lt;a href=&quot;https://www.html5plus.org/doc/zh_cn/camera.html&quot; rel=&quot;nofollow&quot; title=&quot;plus.camera&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;plus.camera&lt;/a&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box;outline: 0px;padding: 16px;margin: 0px 0px 24px;border-left: 8px solid rgb(221, 223, 228);background: rgb(238, 240, 244);overflow: auto;overflow-wrap: break-word;user-select: auto !important&quot;&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 0px;padding: 0px;color: rgb(79, 79, 79);overflow: auto hidden;line-height: 26px;overflow-wrap: break-word;user-select: auto !important&quot;&gt;微信小程序从基础库 2.21.0 开始，&amp;nbsp;&lt;a href=&quot;https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html&quot; rel=&quot;nofollow&quot; title=&quot;wx.chooseImage&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;wx.chooseImage&lt;/a&gt;&amp;nbsp;停止维护，请使用&amp;nbsp;&lt;a href=&quot;https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia&quot; rel=&quot;nofollow&quot; title=&quot;uni.chooseMedia&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;uni.chooseMedia&lt;/a&gt;&amp;nbsp;代替。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;OBJECT 参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;count&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;最多可以选择的图片张数，默认9&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;见下方说明&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;sizeType&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Array&amp;lt;String&amp;gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;original 原图，compressed 压缩图，默认二者都有&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App、微信小程序、支付宝小程序、百度小程序&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;extension&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Array&amp;lt;String&amp;gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;根据文件拓展名过滤，每一项都不能是空字符串。默认不过滤。&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;H5(HBuilder X2.9.9+)&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;sourceType&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Array&amp;lt;String&amp;gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;album 从相册选图，camera 使用相机，默认二者都有。如需直接开相机或直接选相册，请只使用一个选项&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;crop&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Object&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;图像裁剪参数，设置后 sizeType 失效&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;App 3.1.19+&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;success&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;成功则返回图片的本地文件路径列表 tempFilePaths&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;fail&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用失败的回调函数&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;小程序、App&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;complete&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Function&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;接口调用结束的回调函数（调用成功、失败都会执行）&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;crop 参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数名&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;必填&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;平台差异说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;quality&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;取值范围为1-100，数值越小，质量越低（仅对jpg格式有效）。默认值为80。&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;width&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;裁剪的宽度，单位为px，用于计算裁剪宽高比。&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;height&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;裁剪的高度，单位为px，用于计算裁剪宽高比。&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;resize&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Boolean&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;否&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;是否将width和height作为裁剪保存图片真实的像素值。默认值为true。注：设置为false时在裁剪编辑界面显示图片的像素值，设置为true时不显示&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;Tips&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;count 值在 H5 平台的表现，基于浏览器本身的规范。目前测试的结果来看，只能限制单选/多选，并不能限制数量。并且，在实际的手机浏览器很少有能够支持多选的。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;sourceType 值在 H5 平台根据浏览器的不同而表现不同，一般不可限制仅使用相册，部分浏览器也无法限制是否使用相机。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;可以通过用户授权API来判断用户是否给应用授予相册或摄像头的访问权限&lt;a href=&quot;https://uniapp.dcloud.io/api/other/authorize&quot; rel=&quot;nofollow&quot; title=&quot;uni.authorize(OBJECT) | uni-app官网&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;uni.authorize(OBJECT) | uni-app官网&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;App端如需选择非媒体文件，可在插件市场搜索&lt;a href=&quot;https://ext.dcloud.net.cn/search?q=%E6%96%87%E4%BB%B6%E9%80%89%E6%8B%A9&quot; rel=&quot;nofollow&quot; title=&quot;文件选择&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;文件选择&lt;/a&gt;，其中Android端可以使用Native.js，无需原生插件，而iOS端需要原生插件。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;选择照片大多为了上传，uni ui封装了更完善的&lt;a href=&quot;https://ext.dcloud.net.cn/plugin?id=4079&quot; rel=&quot;nofollow&quot; title=&quot;uni-file-picker组件&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;uni-file-picker组件&lt;/a&gt;，文件选择、上传到uniCloud的免费存储和cdn中，一站式集成。强烈推荐使用。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;注：文件的临时路径，在应用本次启动期间可以正常使用，如需持久保存，需在主动调用&amp;nbsp;&lt;a href=&quot;https://uniapp.dcloud.net.cn/api/file/file#savefile&quot; rel=&quot;nofollow&quot; title=&quot;uni.saveFile&quot; target=&quot;_blank&quot; style=&quot;box-sizing: border-box;outline: none;padding: 0px;cursor: pointer;color: rgb(78, 161, 219);overflow-wrap: break-word;user-select: auto !important&quot;&gt;uni.saveFile&lt;/a&gt;，在应用下次启动时才能访问得到。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;success 返回参数说明&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;tempFilePaths&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Array&amp;lt;String&amp;gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;图片的本地文件路径列表&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;tempFiles&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Array&amp;lt;Object&amp;gt;、Array&amp;lt;File&amp;gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;图片的本地文件列表，每一项是一个 File 对象&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;font-weight: 700;overflow-wrap: break-word&quot;&gt;File 对象结构如下&lt;/span&gt;&lt;/p&gt;&lt;table width=&quot;1523&quot; style=&quot;width: 1327px;&quot;&gt;&lt;thead style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;参数&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;类型&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;border-top-color: rgb(221, 221, 221);font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;text-align: left;background-color: rgb(239, 243, 245);user-select: auto !important&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border: 0px;overflow-wrap: break-word&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;path&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;本地文件路径&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;size&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;Number&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;本地文件大小，单位：B&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(255, 255, 255);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;name&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;包含扩展名的文件名称，仅H5支持&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box;outline: 0px;user-select: auto !important;border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-image: initial;border-top-style: solid;border-top-color: rgb(221, 221, 221);background-color: rgb(247, 247, 247);overflow-wrap: break-word&quot;&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;type&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;String&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;outline: 0px;padding: 8px;overflow-wrap: break-word;font-size: 14px;color: rgb(79, 79, 79);line-height: 22px;user-select: auto !important&quot;&gt;文件类型，仅H5支持&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;859&quot; src=&quot;https://img-blog.csdnimg.cn/b8ad3b17d3344c40bd63abfd780b52a3.png&quot; width=&quot;1077&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;341&quot; src=&quot;https://img-blog.csdnimg.cn/b324cb8d3c424befaf2bd47364d91fb6.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;img alt=&quot;&quot; height=&quot;590&quot; src=&quot;https://img-blog.csdnimg.cn/bee05d40f55b489aa11c11ba90f18fee.png&quot; width=&quot;1005&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;493&quot; src=&quot;https://img-blog.csdnimg.cn/e22c86be140141e5a36984db427dc710.png&quot; width=&quot;1200&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;521&quot; src=&quot;https://img-blog.csdnimg.cn/1f1a84bfa1374a59bd85410b2581219e.png&quot; width=&quot;641&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;348&quot; src=&quot;https://img-blog.csdnimg.cn/e52dae90aa024e8f89d5ec7b26b5aee3.png&quot; width=&quot;656&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;552&quot; src=&quot;https://img-blog.csdnimg.cn/8e121c42f56b4eacb12cd8c05504f282.png&quot; width=&quot;644&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;&lt;img alt=&quot;&quot; height=&quot;339&quot; src=&quot;https://img-blog.csdnimg.cn/e9d5bfefe327495fb6ad2730677a31d3.png&quot; width=&quot;678&quot; style=&quot;box-sizing: border-box;outline: none;user-select: auto !important;border: 0px;max-width: 100%;object-fit: cover;height: auto;overflow-wrap: break-word;cursor: zoom-in&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&amp;nbsp;ok，这是简单的从本地获取图片到页面展示。但是真正的上传还没有完成。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;这里我打算调用后端接口完成上传过程。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #956FE7;user-select: auto !important&quot;&gt;暂时写到这里，太累了。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;outline: 0px;margin-top: 0px;margin-bottom: 16px;padding: 0px;font-size: 18px;color: rgb(77, 77, 77);overflow: auto hidden;overflow-wrap: break-word;user-select: auto !important;line-height: 24px !important&quot;&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #956FE7;user-select: auto !important&quot;&gt;如果这篇博客反响还不错的话，我会尽快完成跟新的 ，感谢大家的鼓励~&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;box-sizing: border-box;outline: 0px;padding: 0px;overflow-wrap: break-word;color: #956FE7;user-select: auto !important&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/article&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:27:06 +0800</pubDate></item><item><title>CSS基础选择器 小案例复习（画三个小盒子）</title><link>https://cykcyk.top/?id=4</link><description>&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;（大家好，前面我们学习了基础的&lt;a href=&quot;https://so.csdn.net/so/search?q=%E9%80%89%E6%8B%A9%E5%99%A8&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E9%80%89%E6%8B%A9%E5%99%A8&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;选择器\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;选择器&quot; data-pretit=&quot;选择器&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; background: url(&amp;quot;../img/iconHighlight.svg&amp;quot;) right top / 12px 14px no-repeat transparent; box-shadow: none; user-select: auto !important;&quot;&gt;选择器&lt;/a&gt;，俗话说：温故而知新。所以今天我们将通过小案例来复习前面学过的小知识点。另，十分感谢大家对我文章的支持❤️）&lt;/p&gt;&lt;p class=&quot;img-center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; text-align: center; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;250&quot; src=&quot;https://img-blog.csdnimg.cn/direct/003c8d10da8f4ddf8021081dafc5a4e7.jpeg&quot; width=&quot;400&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-weight: 700; overflow-wrap: break-word;&quot;&gt;通过这个案例复习两个地方：&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;类选择器的使用。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;div就是一个盒子，用来装网页内容的。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;以下是我们要创造的（画三个小盒子）：&lt;/p&gt;&lt;p class=&quot;img-center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; text-align: center; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;422&quot; src=&quot;https://img-blog.csdnimg.cn/direct/ed4c397b08274f2db82f4864074d3b31.png&quot; width=&quot;300&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=&quot;img-center&quot; style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; text-align: center; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&lt;img alt=&quot;&quot; height=&quot;373&quot; src=&quot;https://img-blog.csdnimg.cn/direct/4f0a2e789a6048d98e9545b767438958.png&quot; width=&quot;600&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px; margin: 0px auto; max-width: 100%; object-fit: cover; height: auto; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;pre data-index=&quot;0&quot; class=&quot;set-code-show&quot; name=&quot;code&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px; position: relative; text-wrap: wrap; overflow-wrap: break-word; overflow: auto hidden; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 22px; max-height: unset; background-color: rgb(255, 255, 255);&quot;&gt;&amp;lt;!DOCTYPE&amp;nbsp;html&amp;gt;&amp;lt;html&amp;nbsp;lang=&amp;quot;en&amp;quot;&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta&amp;nbsp;charset=&amp;quot;UTF-8&amp;quot;&amp;gt;&amp;lt;meta&amp;nbsp;name=&amp;quot;viewport&amp;quot;&amp;nbsp;content=&amp;quot;width=device-width,&amp;nbsp;initial-scale=1.0&amp;quot;&amp;gt;&amp;lt;title&amp;gt;CSS基础选择器小案例（画三个小盒子）&amp;lt;/title&amp;gt;&amp;lt;style&amp;gt;.red{width:&amp;nbsp;100px;height:&amp;nbsp;100px;background-color:&amp;nbsp;red;}.green{width:&amp;nbsp;100px;height:&amp;nbsp;100px;background-color:&amp;nbsp;green;}&amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;div&amp;nbsp;class=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;nbsp;class=&amp;quot;green&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;div&amp;nbsp;class=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important; line-height: 24px !important;&quot;&gt;&amp;nbsp;（&lt;span style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; color: #79C6CD; user-select: auto !important;&quot;&gt;今日文案分享：请把努力当成一种习惯，而不是三分钟热度。&lt;/span&gt;）&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:26:17 +0800</pubDate></item><item><title>使用vue制作一个计算器</title><link>https://cykcyk.top/?id=3</link><description>&lt;article class=&quot;baidu_pl&quot; style=&quot;box-sizing: border-box; outline: 0px; position: relative; padding-top: 16px; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: common-ligatures; text-wrap: wrap; user-select: auto !important;&quot;&gt;&lt;div id=&quot;article_content&quot; class=&quot;article_content clearfix&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;div id=&quot;content_views&quot; class=&quot;markdown_views prism-atom-one-dark&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; font-variant-ligatures: no-common-ligatures; overflow-wrap: break-word; position: relative; min-height: 70px; word-break: break-word !important; font-size: 16px !important;&quot;&gt;&lt;pre data-index=&quot;0&quot; class=&quot;prettyprint set-code-show&quot; style=&quot;box-sizing: border-box; outline: 0px; user-select: auto; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: &amp;quot;Source Code Pro&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;Anonymous Pro&amp;quot;, &amp;quot;Droid Sans Mono&amp;quot;, Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 14px; overflow: auto hidden; border: none; line-height: 22px; color: rgb(0, 0, 0); max-height: unset; overflow-wrap: break-word; background-color: rgb(40, 44, 52);&quot;&gt;&amp;lt;!DOCTYPE&amp;nbsp;html&amp;gt;&amp;lt;html&amp;nbsp;lang=&amp;quot;en&amp;quot;&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta&amp;nbsp;charset=&amp;quot;UTF-8&amp;quot;&amp;gt;&amp;lt;meta&amp;nbsp;name=&amp;quot;viewport&amp;quot;&amp;nbsp;content=&amp;quot;width=device-width,&amp;nbsp;initial-scale=1.0&amp;quot;&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;link&amp;nbsp;rel=&amp;quot;stylesheet&amp;quot;&amp;nbsp;href=&amp;quot;styles.css&amp;quot;&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;body&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-family:&amp;nbsp;Arial,&amp;nbsp;sans-serif;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;display:&amp;nbsp;flex;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;justify-content:&amp;nbsp;center;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;align-items:&amp;nbsp;center;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;height:&amp;nbsp;100vh;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;margin:&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.calculator&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border:&amp;nbsp;2px&amp;nbsp;solid&amp;nbsp;#333;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border-radius:&amp;nbsp;10px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width:&amp;nbsp;300px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.display&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border-bottom:&amp;nbsp;2px&amp;nbsp;solid&amp;nbsp;#333;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;display:&amp;nbsp;flex;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.screen&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;flex:&amp;nbsp;1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;height:&amp;nbsp;50px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text-align:&amp;nbsp;center;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;line-height:&amp;nbsp;50px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.buttons&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;display:&amp;nbsp;grid;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;grid-template-columns:&amp;nbsp;repeat(4,&amp;nbsp;1fr);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;button&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;padding:&amp;nbsp;10px;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;font-size:&amp;nbsp;1.2em;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border:&amp;nbsp;none;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background-color:&amp;nbsp;#f0f0f0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cursor:&amp;nbsp;pointer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;button:hover&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;background-color:&amp;nbsp;#e0e0e0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;lt;/style&amp;gt;&amp;lt;body&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;id=&amp;quot;app&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;calculator&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;style=&amp;quot;text-align:&amp;nbsp;center;line-height:&amp;nbsp;30px;border-bottom:&amp;nbsp;2px&amp;nbsp;solid&amp;nbsp;black;&amp;nbsp;width:&amp;nbsp;100%;height:&amp;nbsp;30px;&amp;quot;&amp;gt;{{&amp;nbsp;result&amp;nbsp;}}&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;display&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;screen&amp;quot;&amp;gt;{{&amp;nbsp;firstNumber&amp;nbsp;}}&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;screen&amp;quot;&amp;nbsp;style=&amp;quot;border-left:2px&amp;nbsp;solid&amp;nbsp;black;&amp;quot;&amp;gt;{{&amp;nbsp;operator&amp;nbsp;}}&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;screen&amp;quot;&amp;nbsp;style=&amp;quot;border-left:2px&amp;nbsp;solid&amp;nbsp;black;&amp;quot;&amp;gt;{{&amp;nbsp;secondNumber&amp;nbsp;}}&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div&amp;nbsp;class=&amp;quot;buttons&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(1)&amp;quot;&amp;gt;1&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(2)&amp;quot;&amp;gt;2&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(3)&amp;quot;&amp;gt;3&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(&amp;#39;+&amp;#39;)&amp;quot;&amp;gt;+&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(4)&amp;quot;&amp;gt;4&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(5)&amp;quot;&amp;gt;5&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(6)&amp;quot;&amp;gt;6&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(&amp;#39;-&amp;#39;)&amp;quot;&amp;gt;-&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(7)&amp;quot;&amp;gt;7&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(8)&amp;quot;&amp;gt;8&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(9)&amp;quot;&amp;gt;9&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(&amp;#39;*&amp;#39;)&amp;quot;&amp;gt;×&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;clear&amp;quot;&amp;gt;C&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(0)&amp;quot;&amp;gt;0&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;calculate&amp;quot;&amp;gt;=&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;button&amp;nbsp;@click=&amp;quot;addToExpression(&amp;#39;/&amp;#39;)&amp;quot;&amp;gt;÷&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&amp;lt;script&amp;nbsp;src=&amp;quot;./vue.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;lt;script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new&amp;nbsp;Vue({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;el:&amp;nbsp;&amp;#39;#app&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data:&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;firstNumber:&amp;nbsp;&amp;#39;&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;secondNumber:&amp;nbsp;&amp;#39;&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;operator:&amp;nbsp;&amp;#39;&amp;#39;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;methods:&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;addToExpression(value)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp;(value&amp;nbsp;===&amp;nbsp;&amp;#39;+&amp;#39;&amp;nbsp;||&amp;nbsp;value&amp;nbsp;===&amp;nbsp;&amp;#39;-&amp;#39;&amp;nbsp;||&amp;nbsp;value&amp;nbsp;===&amp;nbsp;&amp;#39;*&amp;#39;&amp;nbsp;||&amp;nbsp;value&amp;nbsp;===&amp;nbsp;&amp;#39;/&amp;#39;)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.operator&amp;nbsp;=&amp;nbsp;value;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;else&amp;nbsp;if&amp;nbsp;(this.operator&amp;nbsp;===&amp;nbsp;&amp;#39;&amp;#39;)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.firstNumber&amp;nbsp;+=&amp;nbsp;value;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;else&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.secondNumber&amp;nbsp;+=&amp;nbsp;value;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;clear()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.firstNumber&amp;nbsp;=&amp;nbsp;&amp;#39;&amp;#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.secondNumber&amp;nbsp;=&amp;nbsp;&amp;#39;&amp;#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.operator&amp;nbsp;=&amp;nbsp;&amp;#39;&amp;#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;calculate()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;let&amp;nbsp;result&amp;nbsp;=&amp;nbsp;0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;const&amp;nbsp;num1&amp;nbsp;=&amp;nbsp;parseFloat(this.firstNumber);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;const&amp;nbsp;num2&amp;nbsp;=&amp;nbsp;parseFloat(this.secondNumber);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;switch&amp;nbsp;(this.operator)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case&amp;nbsp;&amp;#39;+&amp;#39;:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;num1&amp;nbsp;+&amp;nbsp;num2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case&amp;nbsp;&amp;#39;-&amp;#39;:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;num1&amp;nbsp;-&amp;nbsp;num2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case&amp;nbsp;&amp;#39;*&amp;#39;:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;num1&amp;nbsp;*&amp;nbsp;num2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;case&amp;nbsp;&amp;#39;/&amp;#39;:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result&amp;nbsp;=&amp;nbsp;num1&amp;nbsp;/&amp;nbsp;num2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.result&amp;nbsp;=&amp;nbsp;result.toString();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.firstNumber&amp;nbsp;=&amp;nbsp;&amp;#39;&amp;#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.secondNumber&amp;nbsp;=&amp;nbsp;&amp;#39;&amp;#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.operator&amp;nbsp;=&amp;nbsp;&amp;#39;&amp;#39;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},});&amp;lt;/script&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;a href=&quot;https://so.csdn.net/so/search?q=%E6%95%88%E6%9E%9C%E5%9B%BE&amp;spm=1001.2101.3001.7020&quot; target=&quot;_blank&quot; class=&quot;hl hl-1&quot; data-report-click=&quot;{&amp;quot;spm&amp;quot;:&amp;quot;1001.2101.3001.7020&amp;quot;,&amp;quot;dest&amp;quot;:&amp;quot;https://so.csdn.net/so/search?q=%E6%95%88%E6%9E%9C%E5%9B%BE&amp;amp;spm=1001.2101.3001.7020&amp;quot;,&amp;quot;extra&amp;quot;:&amp;quot;{\&amp;quot;searchword\&amp;quot;:\&amp;quot;效果图\&amp;quot;}&amp;quot;}&quot; data-tit=&quot;效果图&quot; data-pretit=&quot;效果图&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px 3px 0px 0px; padding: 0px 14px 0px 3px; text-decoration-line: none; cursor: pointer; background-image: url(&amp;quot;../img/iconHighlight.svg&amp;quot;); background-position: right top; background-size: 12px 14px; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; color: rgb(252, 85, 49); overflow-wrap: break-word; border-radius: 3px; box-shadow: none; user-select: auto !important;&quot;&gt;效果图&lt;/a&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://img-blog.csdnimg.cn/direct/556eddcd089e4efe975b925651e9063f.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: 0px; max-width: 100%; object-fit: cover; overflow-wrap: break-word; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/article&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 08 Apr 2024 17:21:42 +0800</pubDate></item></channel></rss>