<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>NotionNext BLOG</title>
        <link>https://www.houxuyang.online//</link>
        <description>这是一个由NotionNext生成的站点</description>
        <lastBuildDate>Tue, 26 Sep 2023 06:12:20 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2023, 侯旭阳</copyright>
        <item>
            <title><![CDATA[CSS容器查询]]></title>
            <link>https://www.houxuyang.online//article/0e6561f1-e3ee-4c50-bf6d-ef751bd8ccb9</link>
            <guid>https://www.houxuyang.online//article/0e6561f1-e3ee-4c50-bf6d-ef751bd8ccb9</guid>
            <pubDate>Thu, 22 Sep 2022 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-0e6561f1e3ee4c50bf6def751bd8ccb9"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-ef270f19416946dc8bf34d480488dcc3">容器查询<code class="notion-inline-code">@container</code>类似于媒体查询<code class="notion-inline-code">@media</code>，区别在于查询所依据的对象不同。媒体查询依据的是浏览器的视窗大小，容器查询依据的是元素的父元素或者祖先元素的大小。</div><div class="notion-text notion-block-cd8c1cc471fa4a13a34273fbab982657">有关容器查询的属性一共有三个，分别是<code class="notion-inline-code">container-type</code>、<code class="notion-inline-code">container-name</code>、<code class="notion-inline-code">container</code>。</div><div class="notion-text notion-block-718b7c992ec34631a46ca865e3e72b0f"><code class="notion-inline-code">container-type</code>：标识一个作为被查询的容器，取值范围为<code class="notion-inline-code">size</code>、<code class="notion-inline-code">inline-size</code>、<code class="notion-inline-code">block-size</code>、<code class="notion-inline-code">style</code>、<code class="notion-inline-code">state</code></div><div class="notion-text notion-block-a03cb64743b147a4a3ca1a8e8cccf4f2"><code class="notion-inline-code">container-name</code>：被查询的容器的名字</div><div class="notion-text notion-block-d9809795ec3649c18ed0645416ded2ae"><code class="notion-inline-code">container</code>：<code class="notion-inline-code">container-type</code>和<code class="notion-inline-code">container-name</code>的简写</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-60e4b09b63a34db7b69462d0728dba17"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff365edde-0eef-470e-bebc-5981ddfff041%2FUntitled.png?table=block&amp;id=60e4b09b-63a3-4db7-b694-62d0728dba17" alt="notion image" loading="lazy" decoding="async"/></div></figure></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[h5介绍及标签]]></title>
            <link>https://www.houxuyang.online//article/example-2</link>
            <guid>https://www.houxuyang.online//article/example-2</guid>
            <pubDate>Fri, 05 Nov 2021 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1eca721739e943e98c4a11109526ebfb"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-7ed8641a7c404fa99533a46f6d6fd499" data-id="7ed8641a7c404fa99533a46f6d6fd499"><span><div id="7ed8641a7c404fa99533a46f6d6fd499" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7ed8641a7c404fa99533a46f6d6fd499" title="h5介绍及标签"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">h5介绍及标签</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-eaa98dc042d64462a8815e5720ea6968" data-id="eaa98dc042d64462a8815e5720ea6968"><span><div id="eaa98dc042d64462a8815e5720ea6968" class="notion-header-anchor"></div><a class="notion-hash-link" href="#eaa98dc042d64462a8815e5720ea6968" title="HTML5是什么？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">HTML5是什么？</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-f34404e7f0654488aa0e324f7b731200" data-id="f34404e7f0654488aa0e324f7b731200"><span><div id="f34404e7f0654488aa0e324f7b731200" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f34404e7f0654488aa0e324f7b731200" title="网站建设步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">网站建设步骤</span></span></h3><ul class="notion-list notion-list-disc notion-block-0441210ea1ee4d209f024068375001fb"><li>买域名</li></ul><ul class="notion-list notion-list-disc notion-block-81f6b5ba851f4f14be027f023f6b8396"><li>租空间</li></ul><ul class="notion-list notion-list-disc notion-block-409680ac00b24fb6ae4d923fc3ea67ab"><li>网站设计，</li></ul><ul class="notion-list notion-list-disc notion-block-bb7e3d720975457cbe94f3d98e504141"><li>特定工具将网站上传到空间中</li></ul><ul class="notion-list notion-list-disc notion-block-12ae6c46abd3480783209d6a84f6a64f"><li>推广</li></ul><ul class="notion-list notion-list-disc notion-block-2cc4e1478b21480c85adf241a50d4e6d"><li>维护</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-c048c31b90e14f1d9d18d1c9093ae8f7" data-id="c048c31b90e14f1d9d18d1c9093ae8f7"><span><div id="c048c31b90e14f1d9d18d1c9093ae8f7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c048c31b90e14f1d9d18d1c9093ae8f7" title="标签"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">标签</span></span></h3><ul class="notion-list notion-list-disc notion-block-32d38a3d97ea437bbf4ddcfb0f8d5a95"><li>单标签</li></ul><ul class="notion-list notion-list-disc notion-block-52018d84ad5d40e6ab10d5f0f3edc8cb"><li>双标签</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-dcbe42be09134a7b8cee8961be18d25a" data-id="dcbe42be09134a7b8cee8961be18d25a"><span><div id="dcbe42be09134a7b8cee8961be18d25a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#dcbe42be09134a7b8cee8961be18d25a" title="标签的属性"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">标签的属性</span></span></h3><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-a6dbe5a0fd6947369b160287a4c7e80f" data-id="a6dbe5a0fd6947369b160287a4c7e80f"><span><div id="a6dbe5a0fd6947369b160287a4c7e80f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a6dbe5a0fd6947369b160287a4c7e80f" title="span标签"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">span标签</span></span></h3><div class="notion-text notion-block-9ac73d521fdd42b1b0e713a8e6749974">span 标签用来定义文本内容，可以是单独的一句话，一些内容，也可以是段落里面的内容。如果不对 span 应用样式，那么 span 元素中的文本与其他文本不会任何视觉上的差异。尽管如此，上例中的 span 元素仍然为 p 元素增加了额外的结构。span 标签是不带任何默认样式的，所以它极大的提高了我们可以对文本内容自定义样式的需求。</div><div class="notion-text notion-block-5ffb44d7766144ff89f68439256e34b9">span标签的特点：</div><ul class="notion-list notion-list-disc notion-block-c4846244a35941e0b0e416ef775735ca"><li>不独占一行，可以和其他元素排列在一起</li></ul><ul class="notion-list notion-list-disc notion-block-6ec7f0b0e69246489a6a07bba9fc86a1"><li>span标签不支持align属性</li></ul><ul class="notion-list notion-list-disc notion-block-13018faab99b440696a3cde6fda9f497"><li>span不能设置宽度和高度</li></ul><ul class="notion-list notion-list-disc notion-block-521e2d82d716496397915f78ba673e15"><li>span标签设置背景时，字的宽度就是span的宽度</li></ul><ul class="notion-list notion-list-disc notion-block-fc914d60747944e88ecb581bf781bcf7"><li>span标签可以嵌套在div或者p等标签内</li></ul><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-eec6bf54f103415480f916e959d6ceba" data-id="eec6bf54f103415480f916e959d6ceba"><span><div id="eec6bf54f103415480f916e959d6ceba" class="notion-header-anchor"></div><a class="notion-hash-link" href="#eec6bf54f103415480f916e959d6ceba" title="div标签"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">div标签</span></span></h3><div class="notion-text notion-block-4187a2ccef394ca0af79928ab94b5c95">div 标签，称为盒子。作用是设定内容的摆放位置。div 标签可以把文档分割为独立的、不同的部分。div 就相当于一个区域，我们把我们网页内容的都放在这个区域里面。</div><div class="notion-text notion-block-d38bad71572c499f892ce48532c64bb6">div的特点：</div><ul class="notion-list notion-list-disc notion-block-df3572b9935a45029063f7a9440d0278"><li>独占一行</li></ul><ul class="notion-list notion-list-disc notion-block-b11f724dadbc44c4b5fdbe0b42d010a6"><li>支持align属性</li></ul><ul class="notion-list notion-list-disc notion-block-ef6a01e0056f40cfa04be82a9f4c802e"><li>可以设置宽度和高度</li></ul><ul class="notion-list notion-list-disc notion-block-7ae1233234344f32bf350610a384d665"><li>div 没有任何的默认样式，所以它不会像 P 标签和 H 标签一样，有上下间距</li></ul><ul class="notion-list notion-list-disc notion-block-c8eb79f853994bcdb7d1dbb130c1eb81"><li>div 标签里面可以嵌套其他任意标签。</li></ul><ul class="notion-list notion-list-disc notion-block-61efb5adc81542cbab2751fdfd3260d6"><li>我们可以给某些单独的标签外层包裹一个 div，比如 img 标签，a 标签，这样方便我们后续为其设置样式。</li></ul><div class="notion-text notion-block-b32b87a0437248269f457ab293667e07">单词总结：</div><div class="notion-blank notion-block-2c65495124824d4c88386462cffc0f5c"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[webpack]]></title>
            <link>https://www.houxuyang.online//article/2691de5f-75cb-44a4-9078-b829a29c99a6</link>
            <guid>https://www.houxuyang.online//article/2691de5f-75cb-44a4-9078-b829a29c99a6</guid>
            <pubDate>Fri, 09 Sep 2022 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-2691de5f75cb44a49078b829a29c99a6"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-135217241ad7423e9dd18eb2ebb0dce1" data-id="135217241ad7423e9dd18eb2ebb0dce1"><span><div id="135217241ad7423e9dd18eb2ebb0dce1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#135217241ad7423e9dd18eb2ebb0dce1" title="基本概念"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基本概念</span></span></h3><div class="notion-text notion-block-550b1801b9564e82971cbd84201b2ed0">webpack模块（用来可以复用js代码块）打包（合并 压缩 翻译 代码整合解析）工具</div><div class="notion-blank notion-block-750f6b52e3574e6f9dbc44fc889b8a40"> </div><div class="notion-text notion-block-8c862feb7187447e958d7d207410e8ff">webpack可以根据我们配置的入口进行一步步的分析所有的代码模块，根据我们的配置进行自动化的打包并且根据输出位置进行打包之后的文件输出</div><div class="notion-blank notion-block-2b1ca62234c54a048cf921a4f08eed5a"> </div><div class="notion-text notion-block-2f6524dd0a7f4f65abef7058fc27bfa5">gulp/grunt 在一个配置文件中，开发者指明需要让他们干什么（一步一步的指定）这个工具就会帮助我们按照我们的指定来完成功能</div><div class="notion-text notion-block-a397c560f5a845f8a535db370bf7322e">webpack plus版本的gulp它在gulp的基础之上包含了他所有的基本功能在此基础之上添加了一个特殊的功能就是可以对模块化代码进行自动化打包</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-bcc5775aa996465981dec0bb68de0473" data-id="bcc5775aa996465981dec0bb68de0473"><span><div id="bcc5775aa996465981dec0bb68de0473" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bcc5775aa996465981dec0bb68de0473" title="4大配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4大配置</span></span></h3><div class="notion-text notion-block-879d08e25d62459eb9851f1fef199235">入口  出口  加载器  插件</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-bd6998eb49654da6af1340de9f5bdfc6" data-id="bd6998eb49654da6af1340de9f5bdfc6"><span><div id="bd6998eb49654da6af1340de9f5bdfc6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bd6998eb49654da6af1340de9f5bdfc6" title="使用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用</span></span></h3><div class="notion-text notion-block-62c097a6d21544f99f6f4b8dfdb09cb5">webpack 核心包</div><div class="notion-text notion-block-d83ad9fac76b4e529ba461782ee3eea0">webpack-cli webpack的命令行</div><div class="notion-text notion-block-8963ffdb82134ae89f0d7b25e1a9a2d4">1.下载  cnpm install -g webpack@4.39.3  webpacl-cli@3</div><div class="notion-text notion-block-457980bf15d0431fa9a8e16e885bb355">2.创建配置文件  webpack.config.js</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-ce9c2bc115684c38a8e451b5e07a51a1" data-id="ce9c2bc115684c38a8e451b5e07a51a1"><span><div id="ce9c2bc115684c38a8e451b5e07a51a1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ce9c2bc115684c38a8e451b5e07a51a1" title="入口/出口"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">入口/出口</span></span></h4><div class="notion-text notion-block-9493757484114ae6a611f07402dcd07a">entry 入口</div><div class="notion-text notion-block-1825af77d2404aecb15689b1003166ee">output 出口</div><div class="notion-text notion-block-f30d7cd71b9644bfb2d79672f48ca8d6">配置好文件之后，在当前路径下输入webpack即可编译，但是会出现如下警告</div><div class="notion-text notion-block-cffe08816fc749b8b0b880d3c04402a3">production  生产模式  压缩</div><div class="notion-text notion-block-c3addd8a26b947c18f99eb76cbed02e6">development  开发模式  不压缩</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-f90a8863ab634a7da08679f3a449fa9b" data-id="f90a8863ab634a7da08679f3a449fa9b"><span><div id="f90a8863ab634a7da08679f3a449fa9b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f90a8863ab634a7da08679f3a449fa9b" title="mode 打包模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">mode 打包模式</span></span></h4><div class="notion-text notion-block-bb6161d8bac54d4489123ee850befdd2">在入口出口的同级设置打包模式</div><div class="notion-text notion-block-caa830d11b8b4b2e9b78347c8f8264e2">mode：&quot;production/development&quot;</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-40e0912534504925a13c4c35f5d523ad" data-id="40e0912534504925a13c4c35f5d523ad"><span><div id="40e0912534504925a13c4c35f5d523ad" class="notion-header-anchor"></div><a class="notion-hash-link" href="#40e0912534504925a13c4c35f5d523ad" title="打包多个文件怎么办？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">打包多个文件怎么办？</span></span></h4><div class="notion-text notion-block-d572ea102d9640efac659fb62e95e8ac">1.entry配置一个对象用来设置多个入口文件</div><div class="notion-text notion-block-45a04424365f4f6cadd665ebf97bbf8b">2.在出口的filename中使用[name]来进行多文件名的展示</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-331e02f672664736aea71a012be05013" data-id="331e02f672664736aea71a012be05013"><span><div id="331e02f672664736aea71a012be05013" class="notion-header-anchor"></div><a class="notion-hash-link" href="#331e02f672664736aea71a012be05013" title="plugin 插件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">plugin 插件</span></span></h4><div class="notion-text notion-block-b4599825cdb24359858543b2387a53f9">plugin主要就是用来扩展webpack的功能，让webpack有更多与构建项目无关的一些事情</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-a0d8a2206b3f450ba17ccf5386cbceed" data-id="a0d8a2206b3f450ba17ccf5386cbceed"><span><div id="a0d8a2206b3f450ba17ccf5386cbceed" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a0d8a2206b3f450ba17ccf5386cbceed" title="clean-webpack-plugin 打包之后，清空原有的内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">clean-webpack-plugin 打包之后，清空原有的内容</span></span></h4><div class="notion-text notion-block-9173a721b1da42fd9152bc6d64d96722"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.npmjs.com/package/clean-webpack-plugin">https://www.npmjs.com/package/clean-webpack-plugin</a></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-17255e981b8145b7b5e6b24c5a901f14" data-id="17255e981b8145b7b5e6b24c5a901f14"><span><div id="17255e981b8145b7b5e6b24c5a901f14" class="notion-header-anchor"></div><a class="notion-hash-link" href="#17255e981b8145b7b5e6b24c5a901f14" title="html-webpack-plugin"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">html-webpack-plugin</span></span></h4><div class="notion-text notion-block-0c7f8255d5544e20a9d22e009626d793">就是把打包之后的内容动态插入到一个html页面中不需要我们手动进行引用</div><div class="notion-text notion-block-73a4880d0725440ca9136111eb21b249"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://webpack.docschina.org/plugins/html-webpack-plugin/">https://webpack.docschina.org/plugins/html-webpack-plugin/</a> </div><div class="notion-text notion-block-0d81b00f392146d6b76767698eb1f4de">但是注意 html-webpack-plugin的版本  或者是是否缺失webpack包你要单独下次下载</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-2b17ae36d6194d449e753b8603487a3f" data-id="2b17ae36d6194d449e753b8603487a3f"><span><div id="2b17ae36d6194d449e753b8603487a3f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2b17ae36d6194d449e753b8603487a3f" title="devserver"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">devserver</span></span></h3><div class="notion-text notion-block-ac15687f01dd46d38bfad23674a66585">npm install -g webpack-dev-server@3.4.0</div><div class="notion-text notion-block-e1a50169a3c2411087e2bcd4804b030e">启动webpack-dev-server</div><div class="notion-text notion-block-22b470555c5e4f2c9174803cc5938e4c">也可以在package.ison文件中进行配置</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-34813153a0a14c908b6a5a0ca1c6ae97" data-id="34813153a0a14c908b6a5a0ca1c6ae97"><span><div id="34813153a0a14c908b6a5a0ca1c6ae97" class="notion-header-anchor"></div><a class="notion-hash-link" href="#34813153a0a14c908b6a5a0ca1c6ae97" title="loader加载器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">loader加载器</span></span></h3><div class="notion-text notion-block-0e220cf12b634955881fe28263a4ba34">就是把浏览器不能识别的东西翻译成浏览器可以识别的东西</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-4630229b6ce44085ba0912e8d67cc94e" data-id="4630229b6ce44085ba0912e8d67cc94e"><span><div id="4630229b6ce44085ba0912e8d67cc94e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4630229b6ce44085ba0912e8d67cc94e" title="style-loader和css-loader"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>style-loader和css-loader</b></span></span></h4><div class="notion-text notion-block-072ba675955f4394a562298261a4cfb3"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://webpack.docschina.org/loaders/style-loader/">https://webpack.docschina.org/loaders/style-loader/</a></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-929c17394b74461db6d48f24dc8580bf" data-id="929c17394b74461db6d48f24dc8580bf"><span><div id="929c17394b74461db6d48f24dc8580bf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#929c17394b74461db6d48f24dc8580bf" title="less-loader sass-loader"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>less-loader sass-loader</b></span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-d3d8f703b6384fae8e727aecf9ea18b7" data-id="d3d8f703b6384fae8e727aecf9ea18b7"><span><div id="d3d8f703b6384fae8e727aecf9ea18b7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d3d8f703b6384fae8e727aecf9ea18b7" title="vue-loader"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">vue-loader</span></span></h4><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-cb0d7088d8ee4a0b9ca70ee7b755c37a" data-id="cb0d7088d8ee4a0b9ca70ee7b755c37a"><span><div id="cb0d7088d8ee4a0b9ca70ee7b755c37a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#cb0d7088d8ee4a0b9ca70ee7b755c37a" title="webpack有什么特点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">webpack有什么特点</span></span></h3><div class="notion-text notion-block-3d48aeb793a248298a48ae438a352795">1.依赖管理方便引用第三方模块让模块可以容易的复用</div><div class="notion-text notion-block-b81ec26ff65f48009ef07b1b74075bd0">2.代码合并</div><div class="notion-text notion-block-2f651ff01d7f4ad78a4139feec493168">3..各种插件</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-5db0fae9fd054fea8ecb9bf6e22a251e" data-id="5db0fae9fd054fea8ecb9bf6e22a251e"><span><div id="5db0fae9fd054fea8ecb9bf6e22a251e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5db0fae9fd054fea8ecb9bf6e22a251e" title="webpack打包的流程原理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">webpack打包的流程原理</span></span></h3><div class="notion-text notion-block-1182e1f31fab45139ae2456cf4a5a4bb">webpack会把一个项目当成一个整体，通过给定的主文件，webpack会根据这个主文件然后依次分析他相关的依赖文件，并且使用loader来处理他们就进行编译最终打包成一个或多个浏览器可以识别的js文件</div><div class="notion-text notion-block-39600b533a2349ccab2be13a94e221ad">1.解析配置参数</div><div class="notion-text notion-block-7762081ff692445abf18f97986c96b92">2..注册配置中的plugin与loader</div><div class="notion-text notion-block-cd21933e3d37496394884584ac66c341">3.根据entry节点分析出这个项目中的模块关联关系。</div><div class="notion-text notion-block-886c069e6584493b845e799abbd11b23">4.根据loader的匹配条件进行逐一的文件转换</div><div class="notion-text notion-block-ef80af8fd391457195817552e3c0e0be">5.根据output把文件进行导出</div><div class="notion-blank notion-block-befcec34d75f4c1aa20d85b0733f7044"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Echarts]]></title>
            <link>https://www.houxuyang.online//article/80a546e4-ae76-4419-8bb0-d32e53a436a0</link>
            <guid>https://www.houxuyang.online//article/80a546e4-ae76-4419-8bb0-d32e53a436a0</guid>
            <pubDate>Fri, 09 Sep 2022 00:00:00 GMT</pubDate>
            <description><![CDATA[数据可视化–项目开发流程]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-80a546e4ae7644198bb0d32e53a436a0"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-5c361e43596f4fc2821e4d0967f6efe0" data-id="5c361e43596f4fc2821e4d0967f6efe0"><span><div id="5c361e43596f4fc2821e4d0967f6efe0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5c361e43596f4fc2821e4d0967f6efe0" title="数据可视化–项目开发流程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">数据可视化–项目开发流程</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-7dad297dc10f43a88cc26931bc2120ef" data-id="7dad297dc10f43a88cc26931bc2120ef"><span><div id="7dad297dc10f43a88cc26931bc2120ef" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7dad297dc10f43a88cc26931bc2120ef" title="vue3.0项目创建"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">vue3.0项目创建</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-99045c4ca216465caaee9e176444303d" data-id="99045c4ca216465caaee9e176444303d"><span><div id="99045c4ca216465caaee9e176444303d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#99045c4ca216465caaee9e176444303d" title="1.电脑上安装node.js"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.电脑上安装node.js</span></span></h4><div class="notion-text notion-block-8e588bc032f64bd5affa115be01b2b56">网址：https://nodejs.org/zh-cn/</div><div class="notion-text notion-block-a5afef591ce74c8580ba4b60892346ef">下载自己对应操作系统版本 安装即可</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-4bd4270e061a4f02bcf4f38d56144cde" data-id="4bd4270e061a4f02bcf4f38d56144cde"><span><div id="4bd4270e061a4f02bcf4f38d56144cde" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4bd4270e061a4f02bcf4f38d56144cde" title="2.全局下载项目脚手架"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.全局下载项目脚手架</span></span></h4><div class="notion-text notion-block-4e392f4b987547df8c6dfaaf3f776020">打开cmd 输入 npm install -g @vue/cli</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-0ba0570176eb434998a5c31448ac0af0" data-id="0ba0570176eb434998a5c31448ac0af0"><span><div id="0ba0570176eb434998a5c31448ac0af0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0ba0570176eb434998a5c31448ac0af0" title="3.创建项目"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.创建项目</span></span></h4><div class="notion-text notion-block-0d8c725ff6f749f994bf17a76993e870">把cmd的路径切换到指定路径下 vue create 项目名</div><div class="notion-text notion-block-4bb8cdd970944cbb869584d8e0194bb5">(3-1)选择项目配置模板 <b>选择第三项</b>自主选择你项目所需的配置</div><div class="notion-text notion-block-d13b8a6d5f434358a6f84f8bf184af56">(3-2)选择项目配置选项 勾选所需要的模块</div><div class="notion-text notion-block-05aa77cd4401419abae364488413c5cb">(3-3)选择想要开始项目的Vue.js版本 选择 3.x</div><div class="notion-text notion-block-dc5c61659a874b0eb0159e8bbfe8fdfe">(3-4)是否用history模式来创建路由 直接回车默认项目</div><div class="notion-text notion-block-969435be7dfd4b999e53e6cc4e1f450a">(3-5)选择CSS 预处理类型 选择LESS</div><div class="notion-text notion-block-ed52c10000184c23886fb948bccdd3e2">(3-6) 选择代码校验会犯 选择第一项 只进行报错提醒</div><div class="notion-text notion-block-379d055a2ee3492995f659ad0867730f">(3-7)询问项目的什么时候校验格式(第一个是保存时，第二个是提交时)</div><div class="notion-text notion-block-8a1059515aeb41e58ebe15bd21e81179">(3-8)询问项目的配置文件放在那里 (1.独立文件 2.package.json中)</div><div class="notion-text notion-block-41ec67d9e384481aae0f6ef65f2b3c0a">(3-9)是否保存配置当做后续项目的可选配置 我们选择不保存</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-0b27d51b53034608947caf821dea444b" data-id="0b27d51b53034608947caf821dea444b"><span><div id="0b27d51b53034608947caf821dea444b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0b27d51b53034608947caf821dea444b" title="4运行项目"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4运行项目</span></span></h4><div class="notion-text notion-block-1ee1524c252342fc9c05c01d054ccf6f">把cmd的路径切换到你项目名下</div><div class="notion-text notion-block-5a1395c18381469abeaba5fb30074a17">npm run serve 启动项目</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-5d57774ba88142a1b2a6d05bc00dacea" data-id="5d57774ba88142a1b2a6d05bc00dacea"><span><div id="5d57774ba88142a1b2a6d05bc00dacea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5d57774ba88142a1b2a6d05bc00dacea" title="拿到空项目怎么办？"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">拿到空项目怎么办？</span></span></h3><div class="notion-text notion-block-50eb6d7d0c2443e7be1ed5d6e6d5c3dd">1.删除src文件夹下的cpmponents文件夹下的Helloword.vue文件</div><div class="notion-text notion-block-f85d8f4ca06e44e08392cc18bfe9a18e">2.删除views下的两个.vue文件</div><div class="notion-text notion-block-fb7ad831cd044da5b04f3bad5984a79d">3.在views中新建我们的页面文件 homePage.vue文件</div><div class="notion-text notion-block-57cfb5229fbe4d279a75a800d07fccfd">4.修改router下的index.js配置路由文件</div><div class="notion-text notion-block-feef2cf865574d28ace344010647f8d2">5修改根组件默认显示内容与初始化项目样式</div><div class="notion-text notion-block-889f4ef2851246beb76e15cd3329df78">到此为止项目已经初始化完毕</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-d8448d08c0f24056acf644eb6a5f3505" data-id="d8448d08c0f24056acf644eb6a5f3505"><span><div id="d8448d08c0f24056acf644eb6a5f3505" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d8448d08c0f24056acf644eb6a5f3505" title="项目分辨率响应式分析与实施"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目分辨率响应式分析与实施</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-9166b0e6ee6243b8b9332a35f41df8e9" data-id="9166b0e6ee6243b8b9332a35f41df8e9"><span><div id="9166b0e6ee6243b8b9332a35f41df8e9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9166b0e6ee6243b8b9332a35f41df8e9" title="项目基本结构"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目基本结构</span></span></h4><div class="notion-text notion-block-65fcf98f5fba4afebc3ca363b3f87c4d">整体轮廓分为上下结构</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-222dbc03f4f94c46b42e7da7697d626d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F511f1af0-8e36-4522-9c77-aa70620de9ed%2FUntitled.png?table=block&amp;id=222dbc03-f4f9-4c46-b42e-7da7697d626d" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-5e44c31f8c4c4cd7a350b8f58eaf0da8">在下半部分区域分为左中右结构</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-addfb2525ce64a47b3098a1c035816bf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F68d3f98c-4fe9-49d4-9a4e-e796e0be446b%2FUntitled.png?table=block&amp;id=addfb252-5ce6-4a47-b309-8a1c035816bf" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-6a8d7b7116ef45ec82a066eb06343142" data-id="6a8d7b7116ef45ec82a066eb06343142"><span><div id="6a8d7b7116ef45ec82a066eb06343142" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6a8d7b7116ef45ec82a066eb06343142" title="技术栈"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">技术栈</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-9c3aaf7ebd8d453cad88ad188bd84047"><li>vue3.0+vue-router4.0+axios</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-ae62d934c9fb466a855f4d23bbf56500"><li>flex布局</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-798df1e4e1334b4f966ffb9ae05235f4"><li>LESS</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-2d3df0b4b68a4f8aa2b7f96586b9acde"><li>rem屏幕适配</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-591c51552540420091e555c9a4f4e20e"><li>echarts5.0</li></ol><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-a22b690f5b6b4f28a4258f2605025378" data-id="a22b690f5b6b4f28a4258f2605025378"><span><div id="a22b690f5b6b4f28a4258f2605025378" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a22b690f5b6b4f28a4258f2605025378" title="项目分辨率响应式创建"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目分辨率响应式创建</span></span></h4><div class="notion-text notion-block-cb8e846d9a7c4bb79197c9b0586cb999">我们的项目是需要根据页面的大小改变 做出响应式改变的 所以我们可以使用</div><div class="notion-text notion-block-bd0a906182924519b77349e3a614b127">我们可以使用 第三方插件flexible.js帮助我们修改html根节点的font-size大小 从而控制当前页面的rem<b>(会根据页面的html根节点font-size大小改变而改变)</b>样式改变</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-ccd83d112ce94993bd25f112f603e793" data-id="ccd83d112ce94993bd25f112f603e793"><span><div id="ccd83d112ce94993bd25f112f603e793" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ccd83d112ce94993bd25f112f603e793" title="flexible.js"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">flexible.js</span></span></h4><div class="notion-text notion-block-612edff79a504a3c89d9d344c569e34f">flexible.js web自适应方案 阿里团队开源的一个库。使用<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/amfe/lib-flexible">flexible.js</a>轻松搞定各种不同的移动端设备兼容自适应问题。</div><div class="notion-text notion-block-6be4177a1cdb4e5bb3b5a1ad3f9137f2">1.下载 npm i -S lib-flexible</div><div class="notion-text notion-block-f048867a9d2e47178c9352f2dffb44c6">2.在main.js中进行配置</div><div class="notion-text notion-block-26d7ae5b1cfb48f5af9ab2b54273da77">3.修改flexible配置</div><div class="notion-text notion-block-b0cd58538dd64ced84e8e99898dd7643">因为默认情况下只会在540px分辨率一下生效 所以我们需要根据我们的项目分辨率进行调整</div><div class="notion-text notion-block-50b248a189944aa4bb453e53cee01d21">在node_module/lib-flexible/flexible.js中修改代码如下</div><div class="notion-text notion-block-ccce027f14d64911839b7211d8afc19f">这个时候重启项目大家打开浏览器调试器 即可发现在浏览器大小改变的时候 在html根节点上会自动设置一个font-size</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-61a9bd6ca3cd4359bbcf53b9619e81d0" data-id="61a9bd6ca3cd4359bbcf53b9619e81d0"><span><div id="61a9bd6ca3cd4359bbcf53b9619e81d0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#61a9bd6ca3cd4359bbcf53b9619e81d0" title="cssrem插件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">cssrem插件</span></span></h4><div class="notion-text notion-block-f96a5dcf9abf41f18390a3b47cfd21a1">我们在写代码的时候发现如果我们都根据80px为1rem在编写代码的时候转换非常的麻烦 所以我们可以在vscode中安装一个cssrem的插件帮助我们进行转换 这样一来开发过程中会更加的方便</div><div class="notion-text notion-block-e52b11d1e15b48f5b2c6ad4a51165183"><b>配置方式</b></div><div class="notion-text notion-block-431af3d68d2444a0b92503354605708a">在vscode扩展中找到 cssrem插件 最新名字叫px to rem &amp; rpx 安装到vscode中 点击右下角设置</div><div class="notion-text notion-block-f9131d30ea5b41b6a1977f872901f914">修改Root Font Size（基准font-size） 配置项为80即可</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3b23a3f5062b4cd5a4563d1bcde53f26"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F032fd2fe-09e7-4c69-8a2c-4d7d4956b29f%2FUntitled.png?table=block&amp;id=3b23a3f5-062b-4cd5-a456-3d1bcde53f26" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-c6099330928142869eeb93710ede7186"><b>测试与使用</b></div><div class="notion-text notion-block-bf5a4a00f52c475a94ffaf3fd7426477">在写css的时候就会出现相应的rem转换结果</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-0c7afdab9f394b5f9c694ba5b18d7508" data-id="0c7afdab9f394b5f9c694ba5b18d7508"><span><div id="0c7afdab9f394b5f9c694ba5b18d7508" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0c7afdab9f394b5f9c694ba5b18d7508" title="项目顶部信息条创建"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">项目顶部信息条创建</span></span></h4><div class="notion-text notion-block-27d06c869ce349b0937244e311621351">1.设置背景图</div><div class="notion-text notion-block-654dd9aeda964e82900d2c2063cd52a3">把图片方法assets文件夹中 在app.vue中设置背景图</div><div class="notion-text notion-block-010ed28a09bb4aea8679a77bac8fdc52">2.设置标题文字</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-f14e422ada774578aadc09af20c3263d" data-id="f14e422ada774578aadc09af20c3263d"><span><div id="f14e422ada774578aadc09af20c3263d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f14e422ada774578aadc09af20c3263d" title="页面主体创建"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">页面主体创建</span></span></h4><div class="notion-text notion-block-656e1d55fd594a44a0933fc49f4e37b4">主体部分是下面的左中右</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-98d2129266f641879daef4fb01b956a8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa35fe6ef-0ee0-463a-bfbc-563286dd432e%2FUntitled.png?table=block&amp;id=98d21292-66f6-4187-9dae-f4fb01b956a8" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-61229a79fe4e41e7b9dd641a20f868a1" data-id="61229a79fe4e41e7b9dd641a20f868a1"><span><div id="61229a79fe4e41e7b9dd641a20f868a1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#61229a79fe4e41e7b9dd641a20f868a1" title="大容器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">大容器</span></span></h4><div class="notion-text notion-block-a39dfb875b1a43e1b1e6a467bded4579">1.创建一个大容器来容纳绿色 红色 黄色三个区域</div><div class="notion-text notion-block-24f1d4a702704f1eb88a1630eb857974">在homepage.vue页面中创建一个大容器</div><div class="notion-text notion-block-601b513ecf6845ea81ede32c927d7d03">创建容器样式</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-8bbcdf9221c7426186ccf0a7ae88fe1c" data-id="8bbcdf9221c7426186ccf0a7ae88fe1c"><span><div id="8bbcdf9221c7426186ccf0a7ae88fe1c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8bbcdf9221c7426186ccf0a7ae88fe1c" title="左中右"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">左中右</span></span></h4><div class="notion-text notion-block-c1e99ef32e3747ceb7377b7c271ceb0b">接下来我们可以创建左中右这三个部分。那么他们的占比分别是3 5 3 这个时候我们可以使用flex布局来分割他们所占的区块大小</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-aa715c42617246aab07c2e2d8cdd5de8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8b6d738a-16b5-4ee0-bb7d-0a0e57f78162%2FUntitled.png?table=block&amp;id=aa715c42-6172-46aa-b07c-2e2d8cdd5de8" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-8ebc836a00b8466ea1e68e06bcfdd95b">1.创建左中右三个页面容器</div><div class="notion-text notion-block-c990bad4ea9f4acdac533575d881fcf7">2.设置样式</div><div class="notion-text notion-block-69a2e48ee9e64ac3b18297ce1504b539">运行之后会发现 页面的左和右占比是页面各的3份。而中间是占比5份</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-1aac0dd295ea4ddab65eb004f4e6d3fc" data-id="1aac0dd295ea4ddab65eb004f4e6d3fc"><span><div id="1aac0dd295ea4ddab65eb004f4e6d3fc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1aac0dd295ea4ddab65eb004f4e6d3fc" title="左右图表展示区块容器样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">左右图表展示区块容器样式</span></span></h4><div class="notion-text notion-block-f64dd9a5ba454e46ac54c2e186a376bd">大家会发现我们要展示的4个区域的容器效果是一样的。所以我们可以剥离成一个组件 然后重复调用即可。并且在其中放置slot槽口 后期方便向容器内插入图表</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-0d878d8f3611419b85db93e274c29355"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F3c327d9c-b2bd-4643-98ff-d9790e52f7f4%2FUntitled.png?table=block&amp;id=0d878d8f-3611-419b-85db-93e274c29355" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-afb05b9a3d884d93af4b13fa1d61bb45">创建容器组件</div><div class="notion-text notion-block-104ac085f5614020b5151fe64d6ea72a">在components文件夹下创建 itemPage.vue</div><div class="notion-text notion-block-4582991b722946569e054fd685bb234f">编写样式与插槽</div><div class="notion-text notion-block-abbebf96b3f8464b9e935b2038d49d36">在views下的homePage中引用调用使用</div><div class="notion-text notion-block-76ec471215a2431a8e3e09e1ff2ddd6a">运行之后大家会发现左右区块就展现出4个容器</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-5b3c66e9b35c46f8be217a29517f7140" data-id="5b3c66e9b35c46f8be217a29517f7140"><span><div id="5b3c66e9b35c46f8be217a29517f7140" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5b3c66e9b35c46f8be217a29517f7140" title="左右每个区块内容插入容器槽口"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">左右每个区块内容插入容器槽口</span></span></h4><div class="notion-text notion-block-949402fac3994bdeaa873f97d9e5ef44">我们一共4个图标 使用一个公共的组件容器 所以我们编写这4个不同图表的组件并且 分别显示</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a042bf53095d4c29ae08b9f9ded97f51"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8e64733d-5241-40f6-9861-7a7c4ba211d7%2FUntitled.png?table=block&amp;id=a042bf53-095d-4c29-ae08-b9f9ded97f51" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-4355edf5042b480cbd09aca0545220f2">1.创建4个组件 在components下 itemOne.vue等等 一共4个</div><div class="notion-text notion-block-3e8050a1502e455eb5202326563e9875">然后在4个文件中分别设置相关内容与样式（每个图表的标题不一样要修改）</div><div class="notion-text notion-block-c5bdfbe5d7d943e5b503dc9d887be141">在homePage.vue中引用调用使用这4个组件</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3050b06f670c4a949fed2df0de8ea3f0" data-id="3050b06f670c4a949fed2df0de8ea3f0"><span><div id="3050b06f670c4a949fed2df0de8ea3f0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3050b06f670c4a949fed2df0de8ea3f0" title="中间地图区域容器样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">中间地图区域容器样式</span></span></h4><div class="notion-text notion-block-96601b2fce8d4fc0801a01a2c4ad7265">在views文件夹下的 homePage。vue 中设置中间区域容器样式</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-b6a08066b5aa4beaa347b93c7c9602bd" data-id="b6a08066b5aa4beaa347b93c7c9602bd"><span><div id="b6a08066b5aa4beaa347b93c7c9602bd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b6a08066b5aa4beaa347b93c7c9602bd" title="图表前期准备"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">图表前期准备</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-0d99948797b54f5e982892382b9d9684" data-id="0d99948797b54f5e982892382b9d9684"><span><div id="0d99948797b54f5e982892382b9d9684" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0d99948797b54f5e982892382b9d9684" title="全局设置Echarts与axios"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">全局设置Echarts与axios</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-13fd1eb1a63a4f37bc7c4b18f5307248" data-id="13fd1eb1a63a4f37bc7c4b18f5307248"><span><div id="13fd1eb1a63a4f37bc7c4b18f5307248" class="notion-header-anchor"></div><a class="notion-hash-link" href="#13fd1eb1a63a4f37bc7c4b18f5307248" title="Charts 全局引用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Charts 全局引用</span></span></h4><div class="notion-text notion-block-bbf07964bdcd483f8876f89d32f6e1d8">1.下载 npm install –save echarts</div><div class="notion-text notion-block-1a189ec3bb3d430b8c129322048a61a7">2.0的写法</div><div class="notion-text notion-block-cd5fcc0c6d17498cb8af6c63befe5f0f">在vue2.0中使用如下写法吧echarts挂载在vue实例上 但是这招在3.0行不通了</div><div class="notion-text notion-block-99faed5a06794e4cb14a03dedcf3c9a2">在main.js中进行引用和调用</div><div class="notion-text notion-block-105f2c5db0f34bf9b8bcfc45f8940d21">vue3中使用Provide/Inject依赖注入，将替代vue2中在原型链上挂载一些属性</div><div class="notion-text notion-block-a7bd2efeb6994bb28b88e9c4e6fa8c74">在app.vue中使用provider来给后代们提供数据</div><div class="notion-text notion-block-f065170d302e43619d64b3caa75aec69">在想使用的组件中使用inject来接受</div><div class="notion-text notion-block-f18b2498b58e4498bc83c172f7de2bf5">在views下的homePage.vue测试</div><div class="notion-text notion-block-b73985b6b1fd4184baec53a02d1ed064">大家在console中可以看到可以正常使用了</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-c7767b26565145d080ebf0ae9f143cf1" data-id="c7767b26565145d080ebf0ae9f143cf1"><span><div id="c7767b26565145d080ebf0ae9f143cf1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c7767b26565145d080ebf0ae9f143cf1" title="axios全局引用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">axios全局引用</span></span></h4><div class="notion-text notion-block-58d6321a4c204ec39b450d726763d484">axios使用于上面相同方式</div><div class="notion-text notion-block-7bb0a0e688224cceb67d6377bf9be751">1.下载 npm install –save axios</div><div class="notion-text notion-block-fcb472138abc41b59be068182bab71b2">2.在app.vue中使用provider来给后代们提供数据</div><div class="notion-text notion-block-f4c1e43a6d8e4271b7b07cea9f158f34">在想使用的组件中使用inject来接受</div><div class="notion-text notion-block-d1a0a9a585c44da291633640b4a79d82">在views下的homePage.vue测试</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-19aec8f5a96d4eb197b0320968998924" data-id="19aec8f5a96d4eb197b0320968998924"><span><div id="19aec8f5a96d4eb197b0320968998924" class="notion-header-anchor"></div><a class="notion-hash-link" href="#19aec8f5a96d4eb197b0320968998924" title="图表1基本设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">图表1基本设置</span></span></h3><div class="notion-text notion-block-10a5555e845e4a94a5402e4e43ed5485">1.在components文件夹下的 itemOne.vue中 设置图表1</div><div class="notion-text notion-block-33dff5d664754e9c8922439a86390975">2.我们要完成的横向柱状图</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-738ea3008b0045a4809fb8a58a1d5851"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:548px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F37a8fcf1-ec03-4784-b1df-df0f306eb642%2FUntitled.png?table=block&amp;id=738ea300-8b00-45a4-809f-b8a58a1d5851" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-97855355950d4d88b6e3a8d38581f0bd">所以在设置echarts配置的时候。给xAxis 的type设置value数值轴。给yAxis设置 catehory类目轴</div><div class="notion-text notion-block-f096bccfe5284f9585084a30ec322144">3 接下来我们需要图表展示的数据（数据使用json-server提供）</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-a4127bd33aaf425a84a49220e75b0e4d" data-id="a4127bd33aaf425a84a49220e75b0e4d"><span><div id="a4127bd33aaf425a84a49220e75b0e4d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a4127bd33aaf425a84a49220e75b0e4d" title="json-server提供数据"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">json-server提供数据</span></span></h4><div class="notion-text notion-block-2e9675ad6ad340979760fcbbe881614a">本地的mock-server来完全模拟请求以及请求回来的过程。json-server是一个很好的可以替我们完成这一工作的工具。我们只需要提供一个json文件，或者写几行简单的js脚本就可以模拟出RESTful API的接口。</div><div class="notion-text notion-block-10d7d0a8af3c4f0180229c516f40dcc0">1.安装</div><div class="notion-text notion-block-adf9448498ac4385beffa2e55d00c1af">npm install -g json-server</div><div class="notion-text notion-block-2b9f9158c8e048659395d2a41bb6b741">2.在src下创建一个mock文件夹 在其中创建一个json文件如下</div><div class="notion-text notion-block-f75e2671b37a45a3a1cdaac571b8f766">3.启动服务</div><div class="notion-text notion-block-57037240d73340a897c68887c542db13">把终端的命令切换到你mock文件夹下输入json-server空格json文件名 即可启动</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-415b8141913344ad98d13c2530f37a92"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F525ee91c-006b-441f-89c4-5fd94bfa2d71%2FUntitled.png?table=block&amp;id=415b8141-9133-44ad-98d1-3c2530f37a92" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-842cf0c76b05440db79d1e3e17fccfac" data-id="842cf0c76b05440db79d1e3e17fccfac"><span><div id="842cf0c76b05440db79d1e3e17fccfac" class="notion-header-anchor"></div><a class="notion-hash-link" href="#842cf0c76b05440db79d1e3e17fccfac" title="设置axios请求"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设置axios请求</span></span></h4><div class="notion-text notion-block-c6fb494cae854d0f963fd8cbeef9c2a0">在组件内容请求json-server数据</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-d21cc0cb02a34545bcd4a6c3119e4b8a" data-id="d21cc0cb02a34545bcd4a6c3119e4b8a"><span><div id="d21cc0cb02a34545bcd4a6c3119e4b8a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#d21cc0cb02a34545bcd4a6c3119e4b8a" title="设置请求基准路径"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设置请求基准路径</span></span></h4><div class="notion-text notion-block-10bb2520291c4820a1387a6a361be735">后续我们右很多的请求 或者后期请求地址改变的时候我们在一个个组件的修改非常的麻烦 所以我们可以设置请求基准路径方便修改</div><div class="notion-text notion-block-6507502ddf67459fb40de1bc4d1a2e80">1.在app.vue中设置</div><div class="notion-text notion-block-911e4566fcbb430ebd82f727a4874aa4">2.在需要请求的地方只需要写请求的路由地址即可</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-b8977fe1c5da467391ee96d7181a5056" data-id="b8977fe1c5da467391ee96d7181a5056"><span><div id="b8977fe1c5da467391ee96d7181a5056" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b8977fe1c5da467391ee96d7181a5056" title="处理数据"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">处理数据</span></span></h4><div class="notion-text notion-block-46d976a50a1f4fd6b2d6cf1b9d9d142b">我们请求来的数据事一个数组对象 那么我们需要把x轴的数据于y轴的数据取出来变成两个数组方便echarts使用</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-8cd445dedeac4134bd4c28c44c956797" data-id="8cd445dedeac4134bd4c28c44c956797"><span><div id="8cd445dedeac4134bd4c28c44c956797" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8cd445dedeac4134bd4c28c44c956797" title="动态展示图表"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">动态展示图表</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-f70ee8f8635a408fa5d77b9acc01de5d" data-id="f70ee8f8635a408fa5d77b9acc01de5d"><span><div id="f70ee8f8635a408fa5d77b9acc01de5d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#f70ee8f8635a408fa5d77b9acc01de5d" title="添加echarts"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">添加echarts</span></span></h4><div class="notion-text notion-block-34169fa44b3243fe8282ad66b84928f3">echart图表本身是提供了一个<code class="notion-inline-code">resize</code>的函数的。是当浏览器发生resize事件的时候，让其触发echart的resize事件，重绘canvas。</div><div class="notion-text notion-block-d1c43702cbf049fbaa89176509b54f1f">用window.onresize = myChart.resize; 可以完成自适应，就是把window的onresize事件赋值为echart的resize事件</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-6be68bdacc2d49b38f0d1a5a444cf544" data-id="6be68bdacc2d49b38f0d1a5a444cf544"><span><div id="6be68bdacc2d49b38f0d1a5a444cf544" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6be68bdacc2d49b38f0d1a5a444cf544" title="图表一样式修改"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">图表一样式修改</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-95c32d934bba42debc3bdb7efc50e685" data-id="95c32d934bba42debc3bdb7efc50e685"><span><div id="95c32d934bba42debc3bdb7efc50e685" class="notion-header-anchor"></div><a class="notion-hash-link" href="#95c32d934bba42debc3bdb7efc50e685" title="柱状图圆角与线段渐变色设置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">柱状图圆角与线段渐变色设置</span></span></h4><div class="notion-text notion-block-f9454080c6574d2182c19760642ef0a4">在components下的itemOne.vue</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-c3d67d94621b432c83e856bf2ad87c87" data-id="c3d67d94621b432c83e856bf2ad87c87"><span><div id="c3d67d94621b432c83e856bf2ad87c87" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c3d67d94621b432c83e856bf2ad87c87" title="柱状图的柱状的位置与上面显示文字"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">柱状图的柱状的位置与上面显示文字</span></span></h4><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1f9d1d4fd4174b73941d5aaccaad843a" data-id="1f9d1d4fd4174b73941d5aaccaad843a"><span><div id="1f9d1d4fd4174b73941d5aaccaad843a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1f9d1d4fd4174b73941d5aaccaad843a" title="图表2 地图展示"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">图表2 地图展示</span></span></h3><div class="notion-text notion-block-6cb92106409b44a5a9824ff1b8cbff73">如果要展示地图那么需要中国地图的矢量数据与省份数据 在public中的map文件夹已经提供了</div><div class="notion-text notion-block-956f8721cca94446bf07ec5f9c956c60">由于数据实在我们本地 所以 我们在启动项目的时候可以直接在浏览器上输入</div><div class="notion-text notion-block-66d8ceb0ff294ab7966b5917002a492e">http://localhost:8080/map/china.json即可看到数据</div><div class="notion-text notion-block-c4c8c06d1b114639bfa97e07761c566e">我们在components文件夹下创建一个mapPage.vue组件用来容纳地图。同时在views下的homePage.vue中引用调用并且在页面中间的div中使用</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-cff8340608a048c099e725d7bf59f5c3" data-id="cff8340608a048c099e725d7bf59f5c3"><span><div id="cff8340608a048c099e725d7bf59f5c3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#cff8340608a048c099e725d7bf59f5c3" title="获取地图数据"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">获取地图数据</span></span></h4><div class="notion-text notion-block-4b0bb81bb8c54e52bc985d9ab82bb461">因为我们在项目中app.vue中 设置了 请求基准路径</div><div class="notion-text notion-block-de7cc5c4bc204f9380d2909ccabf8ab9">axios.defaults.baseURL=“http://localhost:3000/”</div><div class="notion-text notion-block-c1839784f114403c9e779d375ff0d536">所以我们不能在使用全局的axios 否则会使用基准路径完成请求</div><div class="notion-text notion-block-f163b0aaa0fd4e6d9250eeb761d27484">我们单独引用axios进行数据的请求</div><div class="notion-text notion-block-d236c91220724ee7a76689179aa11ed8">当然我们也可以直接引用数据不用请求</div><div class="notion-text notion-block-dd4736acd38a42b8b26fff80b0b77392">import china from ‘map/json/china.json’ <em>//本地路径</em></div><div class="notion-text notion-block-a7d39e8e472641c6a492a54f6ffc9626">就可以不用上面的请求使用</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-a7b7f59c1fc342699d6029ffd9c36cd2" data-id="a7b7f59c1fc342699d6029ffd9c36cd2"><span><div id="a7b7f59c1fc342699d6029ffd9c36cd2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a7b7f59c1fc342699d6029ffd9c36cd2" title="设置地图"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设置地图</span></span></h4><div class="notion-text notion-block-39de6ffc1d5b4f4ab94b40cb509a341a">echarts.registerMap（名字，数据）</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-9a26e987c0a64362b56703c238fef582" data-id="9a26e987c0a64362b56703c238fef582"><span><div id="9a26e987c0a64362b56703c238fef582" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9a26e987c0a64362b56703c238fef582" title="设置地图样式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设置地图样式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-0594fe5922e04b84b25dc835e8ace89c" data-id="0594fe5922e04b84b25dc835e8ace89c"><span><div id="0594fe5922e04b84b25dc835e8ace89c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0594fe5922e04b84b25dc835e8ace89c" title="在地图上设置散点标记图"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">在地图上设置散点标记图</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-c3024b56167e476187dd4e67d61bd9b6" data-id="c3024b56167e476187dd4e67d61bd9b6"><span><div id="c3024b56167e476187dd4e67d61bd9b6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c3024b56167e476187dd4e67d61bd9b6" title="设置提示框组件的视觉映射效果（地图左下角效果）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设置提示框组件的视觉映射效果（地图左下角效果）</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-a947ea928ad64bf0b8d086cf4561a680" data-id="a947ea928ad64bf0b8d086cf4561a680"><span><div id="a947ea928ad64bf0b8d086cf4561a680" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a947ea928ad64bf0b8d086cf4561a680" title="设置标题"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">设置标题</span></span></h4></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[元素]]></title>
            <link>https://www.houxuyang.online//article/516bf8dd-5983-42da-9266-a985f812ac85</link>
            <guid>https://www.houxuyang.online//article/516bf8dd-5983-42da-9266-a985f812ac85</guid>
            <pubDate>Mon, 05 Sep 2022 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-516bf8dd598342da9266a985f812ac85"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-5f26c03678f54363bcd2c2a0b9b40b68" data-id="5f26c03678f54363bcd2c2a0b9b40b68"><span><div id="5f26c03678f54363bcd2c2a0b9b40b68" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5f26c03678f54363bcd2c2a0b9b40b68" title="行内元素："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">行内元素：</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-429a92dec8ac41ecb2b7e00d1274df52" data-id="429a92dec8ac41ecb2b7e00d1274df52"><span><div id="429a92dec8ac41ecb2b7e00d1274df52" class="notion-header-anchor"></div><a class="notion-hash-link" href="#429a92dec8ac41ecb2b7e00d1274df52" title="块元素："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">块元素：</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-096de0cbe1444a1abfe9e576e657827b" data-id="096de0cbe1444a1abfe9e576e657827b"><span><div id="096de0cbe1444a1abfe9e576e657827b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#096de0cbe1444a1abfe9e576e657827b" title="特殊符号："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">特殊符号：</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-505dee6a0cee4df3878b6d539ee7e5da" data-id="505dee6a0cee4df3878b6d539ee7e5da"><span><div id="505dee6a0cee4df3878b6d539ee7e5da" class="notion-header-anchor"></div><a class="notion-hash-link" href="#505dee6a0cee4df3878b6d539ee7e5da" title="标签的属性："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">标签的属性：</span></span></h4><div class="notion-text notion-block-de09c71880de4ebfbe677331f7df12f7">&lt;标签 属性1=&quot;属性值1&quot; 属性2=&quot;属性值2&quot;&gt;文字&lt;标签&gt;</div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-39ffa9ff45be45ac9053d7f2d4a202b4" data-id="39ffa9ff45be45ac9053d7f2d4a202b4"><span><div id="39ffa9ff45be45ac9053d7f2d4a202b4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#39ffa9ff45be45ac9053d7f2d4a202b4" title="a标签："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">a标签：</span></span></h4><div class="notion-text notion-block-ce04ab73a0d54de284f0ffca6981677e">href–添加跳转链接，title–标题，target–页面跳转方式（1._blank新窗口打开，2._self当前窗口打开，_new新窗口打开）</div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-6038be59cf2a486abb5a53ed2d1f9ced" data-id="6038be59cf2a486abb5a53ed2d1f9ced"><span><div id="6038be59cf2a486abb5a53ed2d1f9ced" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6038be59cf2a486abb5a53ed2d1f9ced" title="ul标签："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">ul标签：</span></span></h4><div class="notion-text notion-block-9f7a4bdfb9cf4cf38b85dc01b46257e8">ul&gt;li{文字$}*5 (快捷键)</div><div class="notion-text notion-block-1b88d001335d482599c23af08f1cc939">type=‘circle’ 实现无序列表效果变成空心的圆；</div><div class="notion-text notion-block-61966cfd48d648e7b36b56fac888e262">type=‘square’ 实现无序列表效果变成实心方块；</div><div class="notion-text notion-block-116cf766c1f54ce3abc3d15f6dae3970">type=‘disc’ 实现无序列表效果变成实心的圆（默认的值，写不写都一样）；</div><div class="notion-text notion-block-eb7ebb6923724c6a98699e5bf9633aa8">ol标签：</div><div class="notion-text notion-block-2f2c4eaf9826432b982cb241c3373c58">type=“a” type=“A” type=“I” type=“i” type=“1”,定义有序列表表达效果</div><div class="notion-text notion-block-1b8422e906d348c8b98ab92486fef803">start=“3”，让列表从第三个开始</div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-04864d8892c44e668a86a4ee2cd7b8f7" data-id="04864d8892c44e668a86a4ee2cd7b8f7"><span><div id="04864d8892c44e668a86a4ee2cd7b8f7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#04864d8892c44e668a86a4ee2cd7b8f7" title="列表的嵌套："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">列表的嵌套：</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-a4e9bad476c144f7bf962f62979a453f" data-id="a4e9bad476c144f7bf962f62979a453f"><span><div id="a4e9bad476c144f7bf962f62979a453f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a4e9bad476c144f7bf962f62979a453f" title="图片："><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">图片：</span></span></h4><div class="notion-text notion-block-dfa92e3ab6ee41688199fe5a5d552253">src是图片的路径，alt是图片加载失败的提示文字，width是设置图片的宽度</div><div class="notion-text notion-block-1559e4eb3b744ef98bd43476a7b0e3e2">所有的块级标签都支持align属性，属性值有center（居中），right（居右），left（居左）</div><div class="notion-text notion-block-c99f025224b940369ce171602bc52e02">块级元素，独占一行，可以设置宽高，ul,li,p,h1-h6,div,ol,dl,dt,dd</div><div class="notion-text notion-block-b889251fd40047ce81baa9df1e9d3e06">行内元素：不独占一行，可以和其他行内元素排列在一起，不能设置宽高，a,b,strong,sub,sup,i,u,s,em,</div><div class="notion-text notion-block-53600366c9a14a2cb7423b1ff1b6825f">行内元素可以嵌套在块级元素中</div><div class="notion-blank notion-block-2abd8e343d15421c815130b672cd41f2"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[vue接口请求]]></title>
            <link>https://www.houxuyang.online//article/0d29a55d-03d8-46dd-ba37-760f3d411db0</link>
            <guid>https://www.houxuyang.online//article/0d29a55d-03d8-46dd-ba37-760f3d411db0</guid>
            <pubDate>Tue, 06 Sep 2022 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-0d29a55d03d846ddba37760f3d411db0"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-ed87e677a21e4d67a0d2e2c4489b4e91" data-id="ed87e677a21e4d67a0d2e2c4489b4e91"><span><div id="ed87e677a21e4d67a0d2e2c4489b4e91" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ed87e677a21e4d67a0d2e2c4489b4e91" title="发送json对象给后端"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">发送json对象给后端</span></span></h3><div class="notion-blank notion-block-39e49adbf0ad49a3af3bb268df4a338c"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>