text: import{r as c,o as l,c as u,a as n,b as a,w as e,F as i,d as s,e as t}from"./app.ef619ceb.js";import{_ as r}from"./plugin-vue_export-helper.21dcd24c.js";const k={},d=n("h1",{id:"\u5168\u5C40api",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#\u5168\u5C40api","aria-hidden":"true"},"#"),s(" \u5168\u5C40API")],-1),b=n("code",null,"IDM",-1),m=s(" \u662F\u4E00\u4E2A\u5BF9\u8C61\uFF0C\u5305\u542B\u6574\u4E2A\u6846\u67B6\u7684\u5168\u5C40"),g=s("\u914D\u7F6E\u9879"),h=s("\u548C\u6846\u67B6\u63D0\u4F9B\u7EC4\u4EF6\u4F7F\u7528\u7684\u6807\u51C6API\u3002\u53EF\u4EE5\u5728\u5E94\u7528\u542F\u52A8\u4E4B\u540E\u901A\u8FC7"),_=n("code",null,"IDM.\u65B9\u6CD5\u540D",-1),v=s(" or "),f=n("code",null,"IDM.\u5206\u7C7B\u540D.\u65B9\u6CD5\u540D",-1),q=s(" \u8BBF\u95EE\u4E0B\u5217Function\uFF1A"),y=t(`<h2 id="util" tabindex="-1"><a class="header-anchor" href="#util" aria-hidden="true">#</a> util</h2><p>\u6B64\u5206\u7C7B\u4E3A\u57FA\u7840\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u53EF\u7701\u7565\u7C7B\u540D\uFF08<code>IDM.\u65B9\u6CD5\u540D</code>\uFF09\u76F4\u63A5\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\uFF0C\u4E5F\u53EF\u4EE5\u8FFD\u52A0\u5206\u7C7B\uFF08<code>IDM.util.\u65B9\u6CD5\u540D</code>\uFF09\u8BBF\u95EE\u3002</p><h3 id="uuid" tabindex="-1"><a class="header-anchor" href="#uuid" aria-hidden="true">#</a> UUID</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>UUID()</code></p></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//uuid\u751F\u6210\u8303\u56F4 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token constant">UUID</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; MM8VhsDVwh9WYkhw</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>\u83B7\u53D616\u4F4D\u7684\u552F\u4E00\u6807\u8BC6</p></li></ul><h3 id="uuid-1" tabindex="-1"><a class="header-anchor" href="#uuid-1" aria-hidden="true">#</a> uuid</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>uuid(len, radix)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{number} [len]</code> \u8981\u83B7\u53D6\u7684\u957F\u5EA6</li><li><code>{number} [radix]</code> \u57FA\u6570\u5927\u5C0F\uFF0C\u4E5F\u5C31\u662F\u6307\u5B9Auuid\u751F\u6210\u8303\u56F4</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//uuid\u751F\u6210\u8303\u56F4 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">uuid</span><span class="token punctuation">(</span><span class="token number">16</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; MM8VhsDVwh9WYkhw</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">uuid</span><span class="token punctuation">(</span><span class="token number">16</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; 0000110011110110</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p>\u83B7\u53D6\u6307\u5B9A\u4F4D\u6570\u7684\u552F\u4E00\u6807\u8BC6</p></li></ul><h3 id="getclientwh" tabindex="-1"><a class="header-anchor" href="#getclientwh" aria-hidden="true">#</a> getClientWH</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getClientWH()</code></p></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A</p><p><code>{width:number,height:number}</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">getClientWH</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; {width:1920,height:960}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u83B7\u53D6\u6D4F\u89C8\u5668\u53EF\u89C6\u533A\u57DF\u5BBD\u9AD8\u65B9\u6CD5</p></li></ul><h3 id="mix" tabindex="-1"><a class="header-anchor" href="#mix" aria-hidden="true">#</a> mix</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>mix()</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{boolean} [deep]</code> \u53EF\u9009\u3002 Boolean\u7C7B\u578B \u6307\u793A\u662F\u5426\u6DF1\u5EA6\u5408\u5E76\u5BF9\u8C61\uFF0C\u9ED8\u8BA4\u4E3Afalse\u3002\u5982\u679C\u8BE5\u503C\u4E3Atrue\uFF0C\u4E14\u591A\u4E2A\u5BF9\u8C61\u7684\u67D0\u4E2A\u540C\u540D\u5C5E\u6027\u4E5F\u90FD\u662F\u5BF9\u8C61\uFF0C\u5219\u8BE5&quot;\u5C5E\u6027\u5BF9\u8C61&quot;\u7684\u5C5E\u6027\u4E5F\u5C06\u8FDB\u884C\u5408\u5E76\u3002</li><li><code>{Object} [target]</code> Object\u7C7B\u578B \u76EE\u6807\u5BF9\u8C61\uFF0C\u5176\u4ED6\u5BF9\u8C61\u7684\u6210\u5458\u5C5E\u6027\u5C06\u88AB\u9644\u52A0\u5230\u8BE5\u5BF9\u8C61\u4E0A\u3002</li><li><code>{Object} [object1]</code> \u53EF\u9009\u3002 Object\u7C7B\u578B \u7B2C\u4E00\u4E2A\u88AB\u5408\u5E76\u7684\u5BF9\u8C61\u3002</li><li><code>{Object} [objectN]</code> \u53EF\u9009\u3002 Object\u7C7B\u578B \u7B2CN\u4E2A\u88AB\u5408\u5E76\u7684\u5BF9\u8C61\u3002</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token keyword">var</span> object1 <span class="token operator">=</span> <span class="token punctuation">{</span>
      <span class="token literal-property property">apple</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
      <span class="token literal-property property">banana</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token literal-property property">weight</span><span class="token operator">:</span> <span class="token number">52</span><span class="token punctuation">,</span> <span class="token literal-property property">price</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token literal-property property">cherry</span><span class="token operator">:</span> <span class="token number">97</span>
  <span class="token punctuation">}</span><span class="token punctuation">;</span>
  <span class="token keyword">var</span> object2 <span class="token operator">=</span> <span class="token punctuation">{</span>
      <span class="token literal-property property">banana</span><span class="token operator">:</span> <span class="token punctuation">{</span><span class="token literal-property property">price</span><span class="token operator">:</span> <span class="token number">200</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token literal-property property">durian</span><span class="token operator">:</span> <span class="token number">100</span>
  <span class="token punctuation">}</span><span class="token punctuation">;</span>
  <span class="token comment">/* object2 \u5408\u5E76\u5230 object1 \u4E2D */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">mix</span><span class="token punctuation">(</span>object1<span class="token punctuation">,</span> object2<span class="token punctuation">)</span>
  
  <span class="token comment">/* object1\u7684\u6700\u7EC8\u7ED3\u679C */</span>
  <span class="token punctuation">{</span>
    <span class="token string-property property">&quot;apple&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;banana&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token string-property property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">200</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;cherry&quot;</span><span class="token operator">:</span> <span class="token number">97</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;durian&quot;</span><span class="token operator">:</span> <span class="token number">100</span>
  <span class="token punctuation">}</span>
  
  <span class="token comment">/* object2 \u5408\u5E76\u5230 object1 \u4E2D (\u6DF1\u5EA6\u5408\u5E76\u5BF9\u8C61) */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">mix</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">,</span> object1<span class="token punctuation">,</span> object2<span class="token punctuation">)</span>
  
  <span class="token comment">/* object1\u7684\u6700\u7EC8\u7ED3\u679C */</span>
  <span class="token punctuation">{</span>
    <span class="token string-property property">&quot;apple&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;banana&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token string-property property">&quot;weight&quot;</span><span class="token operator">:</span> <span class="token number">52</span><span class="token punctuation">,</span>
        <span class="token string-property property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">200</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;cherry&quot;</span><span class="token operator">:</span> <span class="token number">97</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;durian&quot;</span><span class="token operator">:</span> <span class="token number">100</span>
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br></div></div><p>\u7C7B\u4F3CjQuery.extend\u65B9\u6CD5\uFF0C\u53EF\u7528\u4E8E\u5BF9\u8C61\u5408\u5E76</p><div class="custom-container warning"><p class="custom-container-title">WARNING</p><p>\u4E0D\u652F\u6301\u7B2C\u4E00\u4E2A\u53C2\u6570\u4F20\u9012 false \u3002</p><p>\u5982\u679C\u591A\u4E2A\u5BF9\u8C61\u5177\u6709\u76F8\u540C\u7684\u5C5E\u6027\uFF0C\u5219\u540E\u8005\u4F1A\u8986\u76D6\u524D\u8005\u7684\u5C5E\u6027\u503C\u3002</p></div></li></ul><h3 id="error" tabindex="-1"><a class="header-anchor" href="#error" aria-hidden="true">#</a> error</h3>`,11),j=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>error()</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token string">&quot;IDM! \u8FD9\u662F\u4E00\u4E2A\u9519\u8BEF\u4FE1\u606F&quot;</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u4EE3\u7406console.error</p></li>`,2),D=n("p",null,[n("strong",null,"\u53C2\u8003"),s("\uFF1A")],-1),I={href:"https://developer.mozilla.org/en-US/docs/Web/API/console/error",target:"_blank",rel:"noopener noreferrer"},x=s("console.error"),M=n("h3",{id:"warn",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#warn","aria-hidden":"true"},"#"),s(" warn")],-1),w=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>warn()</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">warn</span><span class="token punctuation">(</span><span class="token string">&quot;IDM! \u8FD9\u662F\u4E00\u4E2A\u8B66\u544A\u4FE1\u606F&quot;</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u4EE3\u7406console.warn</p></li>`,2),A=n("p",null,[n("strong",null,"\u53C2\u8003"),s("\uFF1A")],-1),P={href:"https://developer.mozilla.org/en-US/docs/Web/API/console/warn",target:"_blank",rel:"noopener noreferrer"},O=s("console.warn"),S=n("h3",{id:"timeend",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#timeend","aria-hidden":"true"},"#"),s(" timeEnd")],-1),E=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>timeEnd()</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">timeEnd</span><span class="token punctuation">(</span>label<span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u4EE3\u7406console.timeEnd</p></li>`,2),T=n("p",null,[n("strong",null,"\u53C2\u8003"),s("\uFF1A")],-1),N={href:"https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd",target:"_blank",rel:"noopener noreferrer"},C=s("console.timeEnd"),U=n("h3",{id:"time",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#time","aria-hidden":"true"},"#"),s(" time")],-1),W=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>time()</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">time</span><span class="token punctuation">(</span>label<span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u4EE3\u7406console.time</p></li>`,2),F=n("p",null,[n("strong",null,"\u53C2\u8003"),s("\uFF1A")],-1),B={href:"https://developer.mozilla.org/en-US/docs/Web/API/console/time",target:"_blank",rel:"noopener noreferrer"},L=s("console.time"),z=n("h3",{id:"log",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#log","aria-hidden":"true"},"#"),s(" log")],-1),R=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>log()</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; {a:1,b:2}</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token number">123</span><span class="token punctuation">,</span><span class="token number">456</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; 123 456</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>\u4EE3\u7406console.log</p></li>`,2),K=n("p",null,[n("strong",null,"\u53C2\u8003"),s("\uFF1A")],-1),V={href:"https://developer.mozilla.org/en-US/docs/Web/API/console/log",target:"_blank",rel:"noopener noreferrer"},G=s("console.log"),H=t(`<h3 id="isplainobject" tabindex="-1"><a class="header-anchor" href="#isplainobject" aria-hidden="true">#</a> isPlainObject</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>isPlainObject(obj)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [obj]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isPlainObject</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isPlainObject</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isPlainObject</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isPlainObject</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isPlainObject</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isPlainObject</span><span class="token punctuation">(</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div></div><p>\u9A8C\u8BC1\u662F\u5426\u662F\u4E00\u4E2A\u7EAF\u7CB9\u7684\u5BF9\u8C61</p></li></ul><h3 id="hasown" tabindex="-1"><a class="header-anchor" href="#hasown" aria-hidden="true">#</a> hasOwn</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>hasOwn(obj, key)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [obj]</code></li><li><code>{string} [key]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">hasOwn</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token string">&quot;b&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">hasOwn</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token string">&quot;c&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">hasOwn</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token punctuation">{</span><span class="token literal-property property">c</span><span class="token operator">:</span><span class="token number">3</span><span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token string">&quot;c&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>\u9A8C\u8BC1\u5BF9\u8C61\u4E2D\u662F\u5426\u5305\u542B\u6307\u5B9A\u7684key</p></li></ul><h3 id="isfunction" tabindex="-1"><a class="header-anchor" href="#isfunction" aria-hidden="true">#</a> isFunction</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>isFunction(fn)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Function} [fn]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isFunction</span><span class="token punctuation">(</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isFunction</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>\u9A8C\u8BC1\u7C7B\u578B\u662F\u5426\u4E3A\u51FD\u6570</p></li></ul><h3 id="type" tabindex="-1"><a class="header-anchor" href="#type" aria-hidden="true">#</a> type</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>type(obj)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [obj]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">type</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;number&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">type</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;object&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">type</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;array&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">type</span><span class="token punctuation">(</span><span class="token string">&quot;123&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;string&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">type</span><span class="token punctuation">(</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;function&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">type</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;boolean&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div></div><p>\u83B7\u53D6\u5BF9\u8C61\u7C7B\u578B</p></li></ul><h3 id="isundef" tabindex="-1"><a class="header-anchor" href="#isundef" aria-hidden="true">#</a> isUnDef</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>isUnDef(obj)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [obj]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isUnDef</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isUnDef</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isUnDef</span><span class="token punctuation">(</span><span class="token keyword">undefined</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isUnDef</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isUnDef</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isUnDef</span><span class="token punctuation">(</span><span class="token boolean">false</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div></div><p>\u9A8C\u8BC1\u662F\u5426\u4E3Aundefind\u6216\u8005null</p></li></ul><h3 id="isdef" tabindex="-1"><a class="header-anchor" href="#isdef" aria-hidden="true">#</a> isDef</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>isDef(obj)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [obj]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isDef</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isDef</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isDef</span><span class="token punctuation">(</span><span class="token keyword">undefined</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isDef</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isDef</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isDef</span><span class="token punctuation">(</span><span class="token boolean">false</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div></div><p>\u9A8C\u8BC1\u662F\u5426\u4E0D\u4E3Aundefind\u6216\u8005null</p></li></ul><h3 id="isemptyobject" tabindex="-1"><a class="header-anchor" href="#isemptyobject" aria-hidden="true">#</a> isEmptyObject</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>isEmptyObject(obj)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [obj]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">}</span><span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt;true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token boolean">false</span><span class="token punctuation">)</span> <span class="token comment">// =&gt;true</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">isEmptyObject</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt;true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div><p>\u9A8C\u8BC1\u662F\u5426\u4E3A\u4E00\u4E2A\u7A7A\u5BF9\u8C61</p></li></ul><h3 id="setstyletopagehead" tabindex="-1"><a class="header-anchor" href="#setstyletopagehead" aria-hidden="true">#</a> setStyleToPageHead</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>setStyleToPageHead(id,object)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{string} [id]</code></li><li><code>{Object} [object]</code></li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token keyword">var</span> cssObject <span class="token operator">=</span> <span class="token punctuation">{</span>
      <span class="token string-property property">&#39;border&#39;</span><span class="token operator">:</span><span class="token string">&#39;1px solid #000000&#39;</span><span class="token punctuation">,</span>
      <span class="token string-property property">&#39;background-color&#39;</span><span class="token operator">:</span><span class="token string">&#39;red&#39;</span>
  <span class="token punctuation">}</span>
  
  <span class="token comment">//\u5982\u679C\u5F00\u5934\u6CA1\u6709 # \u6216 . \u4F1A\u81EA\u52A8\u8FFD\u52A0 #\uFF0C\u4F8B\u5982\u6B64\u5904\u4F1A\u5BF9 #ElementId \u7684\u5143\u7D20\u751F\u6548</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">setStyleToPageHead</span><span class="token punctuation">(</span><span class="token string">&#39;ElementId&#39;</span><span class="token punctuation">,</span>cssObject<span class="token punctuation">)</span> 
  
  <span class="token comment">//\u5982\u679C\u5F00\u5934\u6709 # \u5219\u4E0D\u4F1A\u8FFD\u52A0 #\uFF0C\u4F8B\u5982\u6B64\u5904\u4F1A\u5BF9 #ElementId \u7684\u5143\u7D20\u751F\u6548</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">setStyleToPageHead</span><span class="token punctuation">(</span><span class="token string">&#39;#ElementId&#39;</span><span class="token punctuation">,</span>cssObject<span class="token punctuation">)</span> 
  
  <span class="token comment">//\u5982\u679C\u5F00\u5934\u6709 . \u5219\u4E0D\u4F1A\u8FFD\u52A0 #\uFF0C\u4F8B\u5982\u6B64\u5904\u4F1A\u5BF9\u5305\u542B\u6837\u5F0F\u540D\u4E3A ClassName \u7684\u5143\u7D20\u751F\u6548</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">setStyleToPageHead</span><span class="token punctuation">(</span><span class="token string">&#39;.ClassName&#39;</span><span class="token punctuation">,</span>cssObject<span class="token punctuation">)</span> 
  
  <span class="token comment">//\u53EF\u4EE5\u6307\u5B9A\u591A\u5C42\u7EA7\u5143\u7D20\u6837\u5F0F\uFF0C\u4F8B\u5982\u6B64\u5904\u4F1A\u5BF9\u5305\u542B\u6837\u5F0F\u540D\u4E3A ClassName \u4E0B\u7684\u6240\u6709div\u5143\u7D20\u751F\u6548</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">setStyleToPageHead</span><span class="token punctuation">(</span><span class="token string">&#39;.ClassName div&#39;</span><span class="token punctuation">,</span>cssObject<span class="token punctuation">)</span> 
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br></div></div><p>\u628Aobject\u6837\u5F0F\u8F6C\u6362\u4E3Astyle\u6807\u7B7E\u6837\u5F0F\u5E76\u6DFB\u52A0\u5230head\u7684\u6807\u7B7E\u4E2D</p><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u5982\u679Cid\u5DF2\u7ECF\u6DFB\u52A0\u8FC7\u4F1A\u5220\u9664\u5DF2\u7ECF\u5B58\u5728\u7684\u76F8\u540CID\u5E76\u91CD\u65B0\u6DFB\u52A0\u3002</p></div></li></ul><h3 id="removestyletagforid" tabindex="-1"><a class="header-anchor" href="#removestyletagforid" aria-hidden="true">#</a> removeStyleTagForId</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>removeStyleTagForId(id)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{string} [id]</code></li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//\u4F1A\u79FB\u9664form\u4E3A ElementId \u7684 style \u6807\u7B7E\u6837\u5F0F</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">removeStyleTagForId</span><span class="token punctuation">(</span><span class="token string">&#39;ElementId&#39;</span><span class="token punctuation">)</span> 
  <span class="token comment">//\u4F1A\u79FB\u9664form\u4E3A .ClassName div \u7684 style \u6807\u7B7E\u6837\u5F0F</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">removeStyleTagForId</span><span class="token punctuation">(</span><span class="token string">&#39;.ClassName div&#39;</span><span class="token punctuation">)</span> 
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><p>\u6839\u636Eid\u79FB\u9664style\u6807\u7B7E</p></li></ul><h3 id="difference" tabindex="-1"><a class="header-anchor" href="#difference" aria-hidden="true">#</a> difference</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>difference(object, base)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [object]</code> \u65E7\u5BF9\u8C61</li><li><code>{Object} [base]</code> \u8981\u5BF9\u6BD4\u7684\u65B0\u5BF9\u8C61</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">difference</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; {a: 1, b: 2}</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">difference</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; {a: 1}</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">difference</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token punctuation">{</span><span class="token literal-property property">c</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">d</span><span class="token operator">:</span><span class="token number">3</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token punctuation">{</span><span class="token literal-property property">c</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token literal-property property">d</span><span class="token operator">:</span><span class="token number">3</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">)</span>  <span class="token comment">// =&gt; {a: {c: 1}}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p>\u5BF9\u6BD4\u88AB\u4FEE\u6539\u7684\u503C\uFF0C\u8FD4\u56DE\u88AB\u4FEE\u6539\u7684\u65E7\u5BF9\u8C61</p></li></ul><h3 id="refreshvuedata" tabindex="-1"><a class="header-anchor" href="#refreshvuedata" aria-hidden="true">#</a> refreshVueData</h3>`,21),$=t("<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>refreshVueData(_this,dataName,attrData)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{vue\u5BF9\u8C61} [_this]</code></li><li><code>{string} [dataName]</code></li><li><code>{Object} [attrData]</code></li></ul></li>",2),X=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">refreshVueData</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">,</span><span class="token string">&quot;dataA.dataB&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token literal-property property">b</span><span class="token operator">:</span><span class="token number">2</span><span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),Y=s("\u5F3A\u5236\u66F4\u65B0Vue\u7684Data\uFF0C\u66F4\u591A\u8BE6\u7EC6\u7684\u5185\u90E8\u65B9\u6CD5\u53EF\u53C2\u8003\uFF1A"),Q={href:"https://cn.vuejs.org/v2/api/#Vue-set",target:"_blank",rel:"noopener noreferrer"},Z=s("Vue.set"),J=t(`<h2 id="array" tabindex="-1"><a class="header-anchor" href="#array" aria-hidden="true">#</a> array</h2><p>\u6B64\u5206\u7C7B\u4E3A\u64CD\u4F5C\u6570\u7EC4\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08<code>IDM.array.\u65B9\u6CD5\u540D</code>\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="ensure" tabindex="-1"><a class="header-anchor" href="#ensure" aria-hidden="true">#</a> ensure</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>ensure(target, item)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Array} [target]</code> \u8981\u64CD\u4F5C\u7684\u6570\u7EC4</li><li><code>{Object} [item]</code> \u8981\u6DFB\u52A0\u7684\u5143\u7D20</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token doc-comment comment">/************\u793A\u4F8B1************/</span>
  <span class="token keyword">var</span> abc <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">]</span><span class="token punctuation">,</span>ddd <span class="token operator">=</span> <span class="token number">3</span><span class="token punctuation">;</span>
  <span class="token comment">//\u6DFB\u52A0</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>array<span class="token punctuation">.</span><span class="token function">ensure</span><span class="token punctuation">(</span>abc<span class="token punctuation">,</span>ddd<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//\u8F93\u51FA\u7ED3\u679C</span>
  abc <span class="token comment">// =&gt; [1, 2, 3]</span>
  
  <span class="token doc-comment comment">/************\u793A\u4F8B2************/</span>
  <span class="token keyword">var</span> abc <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">]</span><span class="token punctuation">,</span>ddd <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span>
  <span class="token comment">//\u6DFB\u52A0</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>array<span class="token punctuation">.</span><span class="token function">ensure</span><span class="token punctuation">(</span>abc<span class="token punctuation">,</span>ddd<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//\u8F93\u51FA\u7ED3\u679C</span>
  abc <span class="token comment">// =&gt; [1, 2]</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br></div></div><p>\u6DFB\u52A0\u4E0D\u5B58\u5728\u7684\u5143\u7D20\uFF0C\u53EA\u6709\u5F53\u524D\u6570\u7EC4\u4E0D\u5B58\u5728\u6B64\u5143\u7D20\u65F6\u6DFB\u52A0\u5B83</p></li></ul><h3 id="removeat" tabindex="-1"><a class="header-anchor" href="#removeat" aria-hidden="true">#</a> removeAt</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>removeAt(target, index)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Array} [target]</code> \u8981\u64CD\u4F5C\u7684\u6570\u7EC4</li><li><code>{number} [index]</code> \u8981\u79FB\u9664\u7684\u7D22\u5F15\u4F4D\u7F6E</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token doc-comment comment">/************\u793A\u4F8B1************/</span>
  <span class="token keyword">var</span> abc <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">]</span><span class="token punctuation">,</span>ddd <span class="token operator">=</span> <span class="token number">2</span><span class="token punctuation">;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>array<span class="token punctuation">.</span><span class="token function">removeAt</span><span class="token punctuation">(</span>abc<span class="token punctuation">,</span>ddd<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; false</span>
  <span class="token comment">//\u8F93\u51FA\u7ED3\u679C</span>
  abc <span class="token comment">// =&gt; [1,2]</span>
  
  <span class="token doc-comment comment">/************\u793A\u4F8B2************/</span>
  <span class="token keyword">var</span> abc <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">]</span><span class="token punctuation">,</span>ddd <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>array<span class="token punctuation">.</span><span class="token function">removeAt</span><span class="token punctuation">(</span>abc<span class="token punctuation">,</span>ddd<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; true</span>
  <span class="token comment">//\u8F93\u51FA\u7ED3\u679C</span>
  abc <span class="token comment">// =&gt; [1]</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br></div></div><p>\u79FB\u9664\u6570\u7EC4\u4E2D\u6307\u5B9A\u4F4D\u7F6E\u7684\u5143\u7D20\uFF0C\u8FD4\u56DE\u5E03\u5C14\u8868\u793A\u6210\u529F\u4E0E\u5426</p></li></ul><h3 id="remove" tabindex="-1"><a class="header-anchor" href="#remove" aria-hidden="true">#</a> remove</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>remove(target, item)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Array} [target]</code> \u8981\u64CD\u4F5C\u7684\u6570\u7EC4</li><li><code>{Object} [item]</code> \u8981\u79FB\u9664\u7684\u5143\u7D20</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>boolean</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token doc-comment comment">/************\u793A\u4F8B1************/</span>
  <span class="token keyword">var</span> abc <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">]</span><span class="token punctuation">,</span>ddd <span class="token operator">=</span> <span class="token number">2</span><span class="token punctuation">;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>array<span class="token punctuation">.</span><span class="token function">remove</span><span class="token punctuation">(</span>abc<span class="token punctuation">,</span>ddd<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; true</span>
  <span class="token comment">//\u8F93\u51FA\u7ED3\u679C</span>
  abc <span class="token comment">// =&gt; [1,1,2]</span>
  
  <span class="token doc-comment comment">/************\u793A\u4F8B2************/</span>
  <span class="token keyword">var</span> abc <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">]</span><span class="token punctuation">,</span>ddd <span class="token operator">=</span> <span class="token number">3</span><span class="token punctuation">;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>array<span class="token punctuation">.</span><span class="token function">remove</span><span class="token punctuation">(</span>abc<span class="token punctuation">,</span>ddd<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; false</span>
  <span class="token comment">//\u8F93\u51FA\u7ED3\u679C</span>
  abc <span class="token comment">// =&gt; [1,2,1,2]</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br></div></div><p>\u79FB\u9664\u6570\u7EC4\u4E2D\u7B2C\u4E00\u4E2A\u5339\u914D\u4F20\u53C2\u7684\u90A3\u4E2A\u5143\u7D20\uFF0C\u8FD4\u56DE\u5E03\u5C14\u8868\u793A\u6210\u529F\u4E0E\u5426</p></li></ul><h2 id="url" tabindex="-1"><a class="header-anchor" href="#url" aria-hidden="true">#</a> url</h2><p>\u6B64\u5206\u7C7B\u4E3A\u64CD\u4F5C\u8DEF\u5F84url\u76F8\u5173\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08<code>IDM.url.\u65B9\u6CD5\u540D</code>\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="getwebpath" tabindex="-1"><a class="header-anchor" href="#getwebpath" aria-hidden="true">#</a> getWebPath</h3>`,11),nn=t("<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getWebPath(url, rootPath, projectNo)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [url]</code> \u8981\u8FDB\u884C\u8F6C\u6362\u7684\u5730\u5740</li><li><code>{String} [rootPath]</code> \u53EF\u9009\uFF0C\u6839\u76EE\u5F55\u524D\u7F00\u8DEF\u5F84</li><li><code>{String} [projectNo]</code> \u53EF\u9009\uFF0C\u9879\u76EE\u7F16\u53F7</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li>",3),sn=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">/* \u524D\u7F00 $ \u8F6C\u6362 */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getWebPath</span><span class="token punctuation">(</span><span class="token string">&quot;$/iconfont/iconfont.css&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> 
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;./static/iconfont/iconfont.css&#39;</span>
  
  <span class="token comment">/* \u524D\u7F00 ~ \u8F6C\u6362 */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getWebPath</span><span class="token punctuation">(</span><span class="token string">&quot;~/iconfont/iconfont.css&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> 
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;./iconfont/iconfont.css&#39;</span>
  
  <span class="token comment">/* \u524D\u7F00 @ \u8F6C\u6362 */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getWebPath</span><span class="token punctuation">(</span><span class="token string">&quot;@/iconfont/iconfont.css&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> 
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;./idm_modules/iconfont/iconfont.css&#39;</span>
  
  <span class="token comment">/* \u65E0\u524D\u7F00\u8F6C\u6362 */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getWebPath</span><span class="token punctuation">(</span><span class="token string">&quot;/iconfont/iconfont.css&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> 
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;/DreamWeb/iconfont/iconfont.css&#39;</span>
  
  <span class="token comment">/* \u65E0\u524D\u7F00\u8F6C\u6362\uFF0C\u5E26 rootPath \u53C2\u6570 */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getWebPath</span><span class="token punctuation">(</span><span class="token string">&quot;/iconfont/iconfont.css&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;/ProjectName/&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> 
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;/ProjectName/iconfont/iconfont.css&#39;</span>
  
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br></div></div><p>\u8DEF\u5F84\u8F6C\u6362\u65B9\u6CD5\uFF0C\u5982\u679C\u53C2\u6570 <code>url</code> \u7684\u524D\u7F00\u4E3A<code>./</code>\u6216<code>../</code>\u6216<code>http://</code>\u6216<code>https://</code>\u5219\u4E0D\u8F6C\u6362\u76F4\u63A5\u539F\u5185\u5BB9\u8FD4\u56DE\u3002\u5176\u4ED6\u60C5\u51B5\u5219\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u8F6C\u6362\uFF1A</p>`,3),an=s("\u524D\u7F00$\u4EE3\u8868\uFF1A\u4F7F\u7528\u914D\u7F6E\u9879 "),tn=n("code",null,"webRoot > assetsDir",-1),pn=s(" \u66FF\u6362\uFF0C\u53C2\u8003"),en=s("assetsDir"),on=s("\u524D\u7F00~\u4EE3\u8868\uFF1A\u4F7F\u7528\u914D\u7F6E\u9879 "),cn=n("code",null,"webRoot > htmlDir",-1),ln=s(" \u66FF\u6362\uFF0C\u53C2\u8003"),un=s("htmlDir"),rn=s("\u524D\u7F00@\u4EE3\u8868\uFF1A\u4F7F\u7528\u914D\u7F6E\u9879 "),kn=n("code",null,"webRoot > moduleDir",-1),dn=s(" \u66FF\u6362\uFF0C\u53C2\u8003"),bn=s("moduledir"),mn=s("\u5176\u4ED6\u60C5\u51B5\u4F7F\u7528\u914D\u7F6E\u9879 "),gn=n("code",null,"webRoot > default",-1),hn=s(" \u66FF\u6362\uFF08\u5982\u679C"),_n=n("code",null,"rootPath",-1),vn=s("\u53C2\u6570\u4E0D\u4E3A\u7A7A\u5219\u5728\u5730\u5740\u524D\u9762\u8FFD\u52A0"),fn=n("code",null,"rootPath",-1),qn=s("\u7684\u53C2\u6570\uFF09\uFF0C\u53C2\u8003"),yn=s("default"),jn={class:"custom-container tip"},Dn=n("p",{class:"custom-container-title"},"TIP",-1),In=n("li",null,[n("p",null,[n("code",null,"url"),s("\u53C2\u6570\u5F00\u5934\u4E3A"),n("code",null,"/"),s("\u4F1A\u88AB\u79FB\u9664\u518D\u8FDB\u884C\u8F6C\u6362")])],-1),xn=s("\u5982\u679C\u524D\u7F00\u4E3A@\u7684\u60C5\u51B5\uFF0C\u5E76\u4E14\u5F00\u542F\u4E86"),Mn=s("useProjectNoSetting"),wn=s("\u7684\u914D\u7F6E\u9879\uFF0C\u5219\u4F1A\u8C03\u7528"),An=s("getModuleAbsoluteDir"),Pn=s("\u65B9\u6CD5\u8FD4\u56DE\u8981\u62FC\u63A5\u7684\u524D\u7F00\uFF0C\u5426\u5219\u5C31\u662F\u6309\u4E0A\u8FF0\u7684\u89C4\u5219\u8FDB\u884C\u8F6C\u6362"),On=n("h3",{id:"getmoduleabsolutedir",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#getmoduleabsolutedir","aria-hidden":"true"},"#"),s(" getModuleAbsoluteDir")],-1),Sn=t("<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getModuleAbsoluteDir(projectNo,rootPath)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [projectNo]</code> \u53EF\u9009\uFF0C\u9879\u76EE\u7F16\u53F7</li><li><code>{boolean} [rootPath]</code> \u53EF\u9009\uFF0C\u662F\u5426\u4F7F\u7528\u6839\u76EE\u5F55\u524D\u7F00\u8DEF\u5F84</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li>",3),En=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getModuleAbsoluteDir</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;/DreamWeb/p1000/idm/idm_modules/&#39;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getModuleAbsoluteDir</span><span class="token punctuation">(</span><span class="token string">&#39;p8888&#39;</span><span class="token punctuation">)</span>
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;/DreamWeb/p8888/idm/idm_modules/&#39;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getModuleAbsoluteDir</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">,</span><span class="token boolean">false</span><span class="token punctuation">)</span>
  <span class="token comment">// \u8F93\u51FA\u7ED3\u679C</span>
  <span class="token comment">// =&gt; &#39;p1000/idm/idm_modules/&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div>`,2),Tn=s("\u6839\u636E\u9879\u76EE\u7F16\u53F7\u83B7\u53D6\u914D\u7F6E\u9879\u7684\u7EC4\u4EF6\u7684\u7EDD\u5BF9\u8DEF\u5F84\uFF0C\u914D\u7F6E\u9879\u53C2\u8003"),Nn=s("moduleAbsoluteDir"),Cn=n("h3",{id:"getmoduleassetswebpath",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#getmoduleassetswebpath","aria-hidden":"true"},"#"),s(" getModuleAssetsWebPath")],-1),Un=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"getModuleAssetsWebPath(url,module)")])],-1),Wn=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),Fn=n("li",null,[n("code",null,"{String} [url]"),s(" \u8D44\u6E90\u7684\u5730\u5740")],-1),Bn=n("code",null,"{Object} [module]",-1),Ln=s(" \u52A0\u8F7D\u7684\u7EC4\u4EF6\u5BF9\u8C61\uFF0C\u6765\u6E90\u53C2\u8003"),zn=s("\u7EC4\u4EF6\u5C5E\u6027"),Rn=n("li",null,[n("p",null,[n("strong",null,"\u8FD4\u56DE\u503C"),s("\uFF1A"),n("code",null,"string")])],-1),Kn=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">/* \u7EC4\u4EF6\u5185\u4F7F\u7528\u4EE5\u4E0B\u65B9\u6CD5\u83B7\u53D6\u7EC4\u4EF6\u5305\u5185\u7684\u9759\u6001\u8D44\u6E90 */</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getModuleAssetsWebPath</span><span class="token punctuation">(</span><span class="token function">require</span><span class="token punctuation">(</span><span class="token string">&#39;../assets/logo.png&#39;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>moduleObject<span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>\u6839\u636E\u914D\u7F6E\u8FD4\u56DE\u7EC4\u4EF6\u6A21\u5757\u7684\u8D44\u6E90\u8DEF\u5F84\u516C\u5171\u65B9\u6CD5</p>`,3),Vn={class:"custom-container tip"},Gn=n("p",{class:"custom-container-title"},"TIP",-1),Hn=s("moduleObject\u5BF9\u8C61\u5185\u5BB9\u53C2\u8003\uFF1A"),$n=s("\u7EC4\u4EF6\u5C5E\u6027"),Xn=t(`<h3 id="getabsolutepath" tabindex="-1"><a class="header-anchor" href="#getabsolutepath" aria-hidden="true">#</a> getAbsolutePath</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getAbsolutePath(url)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [url]</code> \u8D44\u6E90\u7684\u5730\u5740</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getAbsolutePath</span><span class="token punctuation">(</span><span class="token string">&#39;~/assets/logo.png&#39;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;/DreamWeb/assets/logo.png&#39;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getAbsolutePath</span><span class="token punctuation">(</span><span class="token string">&#39;/assets/logo.png&#39;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;/DreamWeb/assets/logo.png&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>\u76F4\u63A5\u83B7\u53D6\u4ECE\u6839\u76EE\u5F55\u7684\u7EDD\u5BF9\u8DEF\u5F84</p></li></ul><h3 id="querystring" tabindex="-1"><a class="header-anchor" href="#querystring" aria-hidden="true">#</a> queryString</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>queryString(key)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [key]</code> \u53C2\u6570\u540D\u79F0</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>hash<span class="token punctuation">;</span>
  <span class="token comment">//\u4F8B\u5982\u8F93\u51FA\u7ED3\u679C\u5982\u4E0B</span>
  <span class="token comment">// =&gt; &#39;#/preview/idm_console_homepage_03?abc=123&amp;dd=456&#39;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">queryString</span><span class="token punctuation">(</span><span class="token string">&quot;abc&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; &#39;123&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p>\u76F4\u63A5\u83B7\u53D6hash\u540E\u9762\u6307\u5B9A\u7684\u53C2\u6570\u540D\u79F0\u7684\u503C</p></li></ul><h3 id="stringify" tabindex="-1"><a class="header-anchor" href="#stringify" aria-hidden="true">#</a> stringify</h3>`,5),Yn=t("<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>stringify(params, options)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [params]</code></li><li><code>{Object} [options]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li>",3),Qn=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token literal-property property">a</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&#39;b&#39;</span><span class="token punctuation">,</span> <span class="token string">&#39;c&#39;</span><span class="token punctuation">,</span> <span class="token string">&#39;d&#39;</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">// &#39;a[0]=b&amp;a[1]=c&amp;a[2]=d&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token literal-property property">a</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&#39;b&#39;</span><span class="token punctuation">,</span> <span class="token string">&#39;c&#39;</span><span class="token punctuation">,</span> <span class="token string">&#39;d&#39;</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> <span class="token literal-property property">indices</span><span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">// &#39;a=b&amp;a=c&amp;a=d&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token literal-property property">a</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&#39;b&#39;</span><span class="token punctuation">,</span> <span class="token string">&#39;c&#39;</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> <span class="token literal-property property">arrayFormat</span><span class="token operator">:</span> <span class="token string">&#39;indices&#39;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token comment">// &#39;a[0]=b&amp;a[1]=c&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token literal-property property">a</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&#39;b&#39;</span><span class="token punctuation">,</span> <span class="token string">&#39;c&#39;</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> <span class="token literal-property property">arrayFormat</span><span class="token operator">:</span> <span class="token string">&#39;brackets&#39;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token comment">// &#39;a[]=b&amp;a[]=c&#39;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token literal-property property">a</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&#39;b&#39;</span><span class="token punctuation">,</span> <span class="token string">&#39;c&#39;</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> <span class="token literal-property property">arrayFormat</span><span class="token operator">:</span> <span class="token string">&#39;repeat&#39;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token comment">// &#39;a=b&amp;a=c&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div><p>\u5C06\u5BF9\u8C61 \u5E8F\u5217\u5316\u6210URL\u7684\u5F62\u5F0F\uFF0C\u4EE5&amp;\u8FDB\u884C\u62FC\u63A5</p>`,3),Zn={class:"custom-container tip"},Jn=n("p",{class:"custom-container-title"},"TIP",-1),ns=s("\u66F4\u591A\u7528\u6CD5\u8BF7\u53C2\u8003\uFF1A"),ss={href:"https://www.npmjs.com/package/qs",target:"_blank",rel:"noopener noreferrer"},as=s("qs"),ts=n("h3",{id:"parse",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#parse","aria-hidden":"true"},"#"),s(" parse")],-1),ps=t("<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>parse(str, options)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{string} [str]</code></li><li><code>{Object} [options]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code></p></li>",3),es=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">&#39;id=1&amp;name=idm.yunit.cn&#39;</span><span class="token punctuation">)</span>
  <span class="token comment">// =&gt; {id: &#39;1&#39;, name: &#39;idm.yunit.cn&#39;}</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">&#39;a[hasOwnProperty]=b&#39;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> <span class="token literal-property property">plainObjects</span><span class="token operator">:</span> <span class="token boolean">true</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token comment">// =&gt; {&quot;a&quot;: {&quot;hasOwnProperty&quot;: &quot;b&quot;}}</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">&#39;a[b][c][d][e][f][g][h][i]=j&#39;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> <span class="token literal-property property">depth</span><span class="token operator">:</span> <span class="token number">1</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token comment">// =&gt; {&quot;a&quot;: {&quot;b&quot;: {&quot;[c][d][e][f][g][h][i]&quot;: &quot;j&quot;}}}</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span><span class="token string">&#39;a=b&amp;c=d&#39;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> <span class="token literal-property property">parameterLimit</span><span class="token operator">:</span> <span class="token number">1</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token comment">// =&gt; {&quot;a&quot;: &quot;b&quot;}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div><p>\u5C06URL\u89E3\u6790\u6210\u5BF9\u8C61\u7684\u5F62\u5F0F</p>`,3),os={class:"custom-container tip"},cs=n("p",{class:"custom-container-title"},"TIP",-1),ls=s("\u66F4\u591A\u7528\u6CD5\u8BF7\u53C2\u8003\uFF1A"),us={href:"https://www.npmjs.com/package/qs",target:"_blank",rel:"noopener noreferrer"},is=s("qs"),rs=t(`<h3 id="analyzing" tabindex="-1"><a class="header-anchor" href="#analyzing" aria-hidden="true">#</a> analyzing</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>analyzing(url)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{string} [url]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">analyzing</span><span class="token punctuation">(</span>window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>href<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">/*
  {
    &quot;url&quot;: &quot;http://localhost:8080/DreamWeb/p1000/idm/index.html#/preview/idm_console_homepage_03?abc=123&amp;dd=456&quot;,
    &quot;protocol&quot;: &quot;http:&quot;,
    &quot;slash&quot;: &quot;//&quot;,
    &quot;host&quot;: &quot;localhost&quot;,
    &quot;port&quot;: &quot;8080&quot;,
    &quot;path&quot;: &quot;/DreamWeb/p1000/idm/index.html&quot;,
    &quot;queryString&quot;: &quot;&quot;,
    &quot;hash&quot;: &quot;/preview/idm_console_homepage_03?abc=123&amp;dd=456&quot;,
    &quot;query&quot;: {}
  }
  */</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br></div></div><p>\u5C06URL\u89E3\u6790\u6210\u5BF9\u8C61\u7684\u5F62\u5F0F</p></li></ul><h3 id="geturlroot" tabindex="-1"><a class="header-anchor" href="#geturlroot" aria-hidden="true">#</a> getURLRoot</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getURLRoot()</code></p></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getURLRoot</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">// =&gt; &#39;http://localhost:8080/DreamWeb/&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>\u83B7\u53D6url\u7684\u524D\u7F00\u6839\u8DEF\u5F84</p></li></ul><h3 id="getcontextweburl" tabindex="-1"><a class="header-anchor" href="#getcontextweburl" aria-hidden="true">#</a> getContextWebUrl</h3>`,5),ks=t("<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getContextWebUrl(url)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{string} [url]</code></li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>string</code></p></li>",3),ds=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//\u751F\u4EA7\u73AF\u5883</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getContextWebUrl</span><span class="token punctuation">(</span><span class="token string">&quot;idm/index.html&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">// =&gt; &#39;http://localhost:8080/DreamWeb/idm/index.html&#39;</span>
  
  <span class="token comment">//\u5F00\u53D1\u73AF\u5883</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getContextWebUrl</span><span class="token punctuation">(</span><span class="token string">&quot;idm/index.html&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">// =&gt; &#39;/DreamWeb/idm/index.html&#39;</span>
  
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div><p>\u6839\u636E\u73AF\u5883\u7684\u4E0D\u540C\u83B7\u53D6\u5BF9\u5E94\u7684url\uFF0CIDM\u5F00\u53D1\u73AF\u5883\u4E0E\u751F\u4EA7\u73AF\u5883\u6240\u83B7\u53D6\u7684\u5730\u5740\u6839\u636E\u914D\u7F6E\u548C\u5B9E\u9645url\u62FC\u63A5\u7684\u5730\u5740\u3002</p>`,3),bs={class:"custom-container tip"},ms=n("p",{class:"custom-container-title"},"TIP",-1),gs=s("\u6CE8\u610F\u4E0A\u8FF0\u5F00\u53D1\u73AF\u5883\u7528\u6CD5\u662F\u8C03\u7528 "),hs=s("getWebPath"),_s=s(" \u5B9E\u73B0\u7684\uFF0C\u751F\u4EA7\u73AF\u5883\u60C5\u51B5\u4E0B\u662F\u8C03\u7528 "),vs=s("getURLRoot"),fs=s(" +"),qs=n("code",null,"\u53C2\u6570url",-1),ys=s(" \u5B9E\u73B0\u7684"),js=t(`<h3 id="queryobject" tabindex="-1"><a class="header-anchor" href="#queryobject" aria-hidden="true">#</a> queryObject</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>queryObject(query)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{string} [query]</code> \u53EF\u9009\uFF0Curl\u5730\u5740</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token doc-comment comment">/************\u793A\u4F8B1************/</span>
  <span class="token keyword">var</span> url1 <span class="token operator">=</span> <span class="token string">&quot;http://localhost:8080/DreamWeb/p1000/idm/index.html#/preview/idm_console_homepage_03?abc=123&amp;dd=456&quot;</span><span class="token punctuation">;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">queryObject</span><span class="token punctuation">(</span>url1<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; {abc: &#39;123&#39;, dd: &#39;456&#39;}</span>
  
  <span class="token doc-comment comment">/************\u793A\u4F8B2************/</span>
  window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>href<span class="token punctuation">;</span>
  <span class="token comment">//\u5982\u679C\u8F93\u51FA\u7ED3\u679C\u4E3A\uFF1A</span>
  <span class="token comment">//&quot;http://localhost:8080/DreamWeb/p1000/idm/index.html?abc=123&amp;dd=456#/preview/idm_console_homepage_03&quot;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">queryObject</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; {abc: &#39;123&#39;, dd: &#39;456&#39;}</span>
  
  <span class="token doc-comment comment">/************\u793A\u4F8B3************/</span>
  window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>href<span class="token punctuation">;</span>
  <span class="token comment">//\u5982\u679C\u8F93\u51FA\u7ED3\u679C\u4E3A\uFF1A</span>
  <span class="token comment">//&quot;http://localhost:8080/DreamWeb/p1000/idm/index.html#/preview/idm_console_homepage_03?abc=123&amp;dd=456&quot;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">queryObject</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; {abc: &#39;123&#39;, dd: &#39;456&#39;}</span>
  
  <span class="token doc-comment comment">/************\u793A\u4F8B4************/</span>
  window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>href<span class="token punctuation">;</span>
  <span class="token comment">//\u5982\u679C\u8F93\u51FA\u7ED3\u679C\u4E3A\uFF1A</span>
  <span class="token comment">//&quot;http://localhost:8080/DreamWeb/p1000/idm/index.html?abc=123&amp;dd=456#/preview/idm_console_homepage_03?abc=abc&amp;dd=def&quot;</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">queryObject</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// =&gt; {abc: &#39;abc&#39;, dd: &#39;def&#39;}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br></div></div><p>\u53EF\u6839\u636E\u53C2\u6570\u83B7\u53D6url\u8F6C\u6362\u7684object\u5BF9\u8C61\uFF0C\u4E5F\u53EF\u4E0D\u4F20\u53C2\u6570\u76F4\u63A5\u83B7\u53D6\u9875\u9762url\u7684\u53C2\u6570\u8F6C\u6362\u4E3Aobject\u5BF9\u8C61</p><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u5982\u679C\u6CA1\u6709\u4F20<code>query</code>\u53C2\u6570\uFF0C\u5219\u81EA\u52A8\u4F18\u5148\u83B7\u53D6hash\u540E\u9762\u62FC\u63A5\u7684\u53C2\u6570\uFF0C\u5982\u679Chash\u540E\u9762\u6CA1\u6709\u53C2\u6570\u518D\u83B7\u53D6\u7B2C\u4E00\u4E2A\u95EE\u53F7\u540E\u9762\u7684\u53C2\u6570\u3002</p></div></li></ul><h2 id="validate" tabindex="-1"><a class="header-anchor" href="#validate" aria-hidden="true">#</a> validate</h2><p>\u6B64\u5206\u7C7B\u4E3A\u5185\u5BB9\u7684\u6821\u9A8C\u76F8\u5173\u7684\u516C\u5171\u65B9\u6CD5\uFF0C\u6B64\u65B9\u6CD5\uFF08<code>IDM.validate(arg1,arg2,argN)</code>\uFF09\u7B2C\u4E00\u4E2A\u53C2\u6570\u4E3A\u6821\u9A8C\u7C7B\u578B\uFF0C\u7B2C\u4E8C\u4E2A\u53C2\u6570\u8D77\u4E3A\u6821\u9A8C\u6240\u9700\u8981\u7684\u5185\u5BB9\uFF0C\u4EE5\u4E0B\u5217\u51FA\u4E86\u53EF\u4F7F\u7528\u7684\u6821\u9A8C\u7C7B\u578B\uFF1A</p><h3 id="isexternal" tabindex="-1"><a class="header-anchor" href="#isexternal" aria-hidden="true">#</a> isExternal</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u5916\u90E8\u7684\u8D44\u6E90\uFF0C\u53EF\u6821\u9A8Curl\u5730\u5740\u3001\u90AE\u7BB1\u3001\u7535\u8BDD\u7B49\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isExternal&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;http://www.yunit.cn&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isExternal&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;www.yunit.cn&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isExternal&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;tel:13212341234&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isExternal&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;mailto:960504980@qq.com&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div></li></ul><h3 id="isnull" tabindex="-1"><a class="header-anchor" href="#isnull" aria-hidden="true">#</a> isNull</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u4E3A\u7A7A\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNull&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNull&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNull&quot;</span><span class="token punctuation">,</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNull&quot;</span><span class="token punctuation">,</span><span class="token punctuation">[</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNull&quot;</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNull&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;http://www.yunit.cn&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div></li></ul><h3 id="isnumber" tabindex="-1"><a class="header-anchor" href="#isnumber" aria-hidden="true">#</a> isNumber</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u662F\u4E00\u4E2A\u6570\u5B57\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumber&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumber&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumber&quot;</span><span class="token punctuation">,</span><span class="token number">123</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumber&quot;</span><span class="token punctuation">,</span><span class="token number">123.12</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumber&quot;</span><span class="token punctuation">,</span><span class="token number">123.12</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumber&quot;</span><span class="token punctuation">,</span><span class="token number">123.12</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumber&quot;</span><span class="token punctuation">,</span><span class="token number">123.123</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u7B2C\u4E09\u4E2A\u53C2\u6570\u4E3A\u7CBE\u5EA6\u6821\u9A8C</p></div></li></ul><h3 id="isstring" tabindex="-1"><a class="header-anchor" href="#isstring" aria-hidden="true">#</a> isString</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u662F\u4E00\u4E2A\u5B57\u7B26\u4E32\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isString&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isString&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;123&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isString&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isString&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div></li></ul><h3 id="isarray" tabindex="-1"><a class="header-anchor" href="#isarray" aria-hidden="true">#</a> isArray</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u662F\u4E00\u4E2A\u6570\u7EC4\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isArray&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isArray&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isArray&quot;</span><span class="token punctuation">,</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isArray&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div></li></ul><h3 id="isnumberover" tabindex="-1"><a class="header-anchor" href="#isnumberover" aria-hidden="true">#</a> isNumberOver</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u6570\u5B57\u662F\u5426\u8D85\u51FA\u6307\u5B9A\u6570\u5B57\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberOver&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberOver&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberOver&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberOver&quot;</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u7B2C\u4E8C\u4E2A\u53C2\u6570\u4E3A\u8981\u6821\u9A8C\u7684\u6570\u5B57\uFF0C\u7B2C\u4E09\u4E2A\u53C2\u6570\u4E3A\u6821\u9A8C\u7B2C\u4E8C\u4E2A\u53C2\u6570\u662F\u5426\u8D85\u8FC7\u6B64\u6570\u5B57\u5927\u5C0F</p></div></li></ul><h3 id="isnumberunder" tabindex="-1"><a class="header-anchor" href="#isnumberunder" aria-hidden="true">#</a> isNumberUnder</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u6570\u5B57\u662F\u5426\u5C0F\u4E8E\u6307\u5B9A\u6570\u5B57\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberUnder&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberUnder&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberUnder&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isNumberUnder&quot;</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u7B2C\u4E8C\u4E2A\u53C2\u6570\u4E3A\u8981\u6821\u9A8C\u7684\u6570\u5B57\uFF0C\u7B2C\u4E09\u4E2A\u53C2\u6570\u4E3A\u6821\u9A8C\u7B2C\u4E8C\u4E2A\u53C2\u6570\u662F\u5426\u5C0F\u4E8E\u6B64\u6570\u5B57\u5927\u5C0F</p></div></li></ul><h3 id="precision" tabindex="-1"><a class="header-anchor" href="#precision" aria-hidden="true">#</a> precision</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u6570\u5B57\u6570\u5B57\u7CBE\u5EA6\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;precision&quot;</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;precision&quot;</span><span class="token punctuation">,</span><span class="token number">1.1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;precision&quot;</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;precision&quot;</span><span class="token punctuation">,</span><span class="token number">1.12</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;precision&quot;</span><span class="token punctuation">,</span><span class="token number">1.12</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;precision&quot;</span><span class="token punctuation">,</span><span class="token number">1.12</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u7B2C\u4E09\u4E2A\u53C2\u6570\u4E3A\u6821\u9A8C\u7B2C\u4E8C\u4E2A\u6570\u5B57\u53C2\u6570\u7684\u7CBE\u5EA6\u662F\u5426\u5C0F\u4E8E\u6216\u7B49\u4E8E\u6B64\u53C2\u6570\u5927\u5C0F</p></div></li></ul><h3 id="maxlength" tabindex="-1"><a class="header-anchor" href="#maxlength" aria-hidden="true">#</a> maxLength</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u5B57\u7B26\u4E32\u8D85\u51FA\u6307\u5B9A\u957F\u5EA6\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;maxLength&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;maxLength&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;abc&quot;</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;maxLength&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;abc&quot;</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u7B2C\u4E09\u4E2A\u53C2\u6570\u4E3A\u6821\u9A8C\u7B2C\u4E8C\u4E2A\u5B57\u7B26\u4E32\u53C2\u6570\u7684\u957F\u5EA6\u662F\u5426\u5927\u4E8E\u6B64\u53C2\u6570\u5927\u5C0F</p></div></li></ul><h3 id="minlength" tabindex="-1"><a class="header-anchor" href="#minlength" aria-hidden="true">#</a> minLength</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u5B57\u7B26\u5C0F\u4E8E\u6307\u5B9A\u957F\u5EA6\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;minLength&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;minLength&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;abc&quot;</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;minLength&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;abc&quot;</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;minLength&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;abc&quot;</span><span class="token punctuation">,</span><span class="token number">4</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u7B2C\u4E09\u4E2A\u53C2\u6570\u4E3A\u6821\u9A8C\u7B2C\u4E8C\u4E2A\u5B57\u7B26\u4E32\u53C2\u6570\u7684\u957F\u5EA6\u662F\u5426\u5C0F\u4E8E\u6B64\u53C2\u6570\u5927\u5C0F</p></div></li></ul><h3 id="isidcard" tabindex="-1"><a class="header-anchor" href="#isidcard" aria-hidden="true">#</a> isIDCard</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u4E3A\u8EAB\u4EFD\u8BC1\u53F7\u7801\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isIDCard&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isIDCard&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;262361943401011371&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isIDCard&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;26236194340101137X&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div></li></ul><h3 id="ismobile" tabindex="-1"><a class="header-anchor" href="#ismobile" aria-hidden="true">#</a> isMobile</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u624B\u673A\u53F7\u7801\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobile&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobile&quot;</span><span class="token punctuation">,</span><span class="token number">1232221234</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobile&quot;</span><span class="token punctuation">,</span><span class="token number">13232221234</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobile&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;13232221234&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div></li></ul><h3 id="istelphone" tabindex="-1"><a class="header-anchor" href="#istelphone" aria-hidden="true">#</a> isTelPhone</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u5EA7\u673A\u53F7\u7801\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isTelPhone&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isTelPhone&quot;</span><span class="token punctuation">,</span><span class="token number">1232221234</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isTelPhone&quot;</span><span class="token punctuation">,</span><span class="token number">1213125</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isTelPhone&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;0754-1213195&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div></li></ul><h3 id="ismobileortelphone" tabindex="-1"><a class="header-anchor" href="#ismobileortelphone" aria-hidden="true">#</a> isMobileOrTelPhone</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u624B\u673A\u53F7\u7801\u6216\u5EA7\u673A\u53F7\u7801\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobileOrTelPhone&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobileOrTelPhone&quot;</span><span class="token punctuation">,</span><span class="token number">1232221234</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobileOrTelPhone&quot;</span><span class="token punctuation">,</span><span class="token number">1213125</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobileOrTelPhone&quot;</span><span class="token punctuation">,</span><span class="token number">13232221234</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMobileOrTelPhone&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;0754-1213195&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div></li></ul><h3 id="isemail" tabindex="-1"><a class="header-anchor" href="#isemail" aria-hidden="true">#</a> isEmail</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u7535\u5B50\u90AE\u7BB1\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isEmail&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isEmail&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1@q.com&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div></li></ul><h3 id="isplatenumber" tabindex="-1"><a class="header-anchor" href="#isplatenumber" aria-hidden="true">#</a> isPlateNumber</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u8F66\u724C\u53F7\u7801\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isPlateNumber&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isPlateNumber&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;\u5180873672&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isPlateNumber&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;\u5180\xB7873672&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div></li></ul><h3 id="isurl" tabindex="-1"><a class="header-anchor" href="#isurl" aria-hidden="true">#</a> isUrl</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426\u7F51\u5740\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isUrl&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isUrl&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;http://&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isUrl&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;http://www.yunit.c&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isUrl&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;http://www.yunit.cn&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isUrl&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;ftp://www.yunit.cn&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div></li></ul><h3 id="isipaddress" tabindex="-1"><a class="header-anchor" href="#isipaddress" aria-hidden="true">#</a> isIpAddress</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426ip\u5730\u5740\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isIpAddress&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isIpAddress&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;192.168.1.2&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isIpAddress&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;192.256.1.2&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isIpAddress&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;255.255.255.0&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div></li></ul><h3 id="ismacaddress" tabindex="-1"><a class="header-anchor" href="#ismacaddress" aria-hidden="true">#</a> isMacAddress</h3><ul><li><p><strong>\u8BF4\u660E</strong>\uFF1A</p><p>\u6821\u9A8C\u662F\u5426mac\u5730\u5740\u3002</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMacAddress&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;128:330:20:0A:8C:6D&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token string">&quot;isMacAddress&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;08:00:20:0A:8C:6D&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div></li></ul><h2 id="http" tabindex="-1"><a class="header-anchor" href="#http" aria-hidden="true">#</a> http</h2><p>\u6B64\u5206\u7C7B\u4E3A\u6570\u636E\u8D44\u6E90\u8BF7\u6C42\u76F8\u5173\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.http.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="get" tabindex="-1"><a class="header-anchor" href="#get" aria-hidden="true">#</a> get</h3>`,45),Ds=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"get(path, params, options, rootPath)")])],-1),Is=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),xs=n("code",null,"{String} [path]",-1),Ms=s(" \u8BF7\u6C42\u5730\u5740\uFF0C\u6B64\u5730\u5740\u4F1A\u7ECF "),ws=s("getWebPath"),As=s(" \u8F6C\u6362"),Ps=n("li",null,[n("code",null,"{Object} [params]"),s(" \u643A\u5E26\u53C2\u6570")],-1),Os=n("li",null,[n("code",null,"{Object} [options]"),s(" \u8BF7\u6C42\u9009\u9879\uFF0C\u5982\u679C\u4E3A\u5B57\u7B26\u4E32\u5219\u4F1A\u76F4\u63A5\u5F53\u505ArootPath\u53C2\u6570")],-1),Ss=n("li",null,[n("code",null,"{String} [rootPath]"),s(" \u53EF\u9009\uFF0C\u5982\u679Coptions\u53C2\u6570\u4E3A\u5B57\u7B26\u4E32\u5219\u6B64\u53C2\u6570\u65E0\u6548")],-1),Es=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token string">&#39;api/getMyInfo&#39;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span>
     <span class="token literal-property property">userId</span><span class="token operator">:</span> <span class="token string">&#39;1b1d18d830c44b509d4fa730fa9d0b9b&#39;</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">done</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">d</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">&#39;\u6A21\u62DFGet\u8BF7\u6C42\u6210\u529F&#39;</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">response</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">&#39;\u6A21\u62DFGet\u8BF7\u6C42\u5931\u8D25&#39;</span><span class="token punctuation">,</span> <span class="token boolean">false</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">always</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token keyword">debugger</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div>`,2),Ts=s("\u57FA\u4E8E "),Ns={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},Cs=s("Axios"),Us=s(" \u7684 get \u8BF7\u6C42\u65B9\u6CD5\u3002"),Ws={class:"custom-container tip"},Fs=n("p",{class:"custom-container-title"},"TIP",-1),Bs=n("p",null,"\u66F4\u591A\u7528\u6CD5\u8BF7\u53C2\u8003\uFF1A",-1),Ls=s("Axios \u4E2D\u6587\u6587\u6863\uFF1A"),zs={href:"https://www.axios-http.cn/docs/intro",target:"_blank",rel:"noopener noreferrer"},Rs=s("Axios\u4E2D\u6587"),Ks=s("Axios \u82F1\u6587\u6587\u6863\uFF1A"),Vs={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},Gs=s("Axios\u82F1\u6587"),Hs=s("Axios Github\uFF1A"),$s={href:"https://github.com/axios/axios",target:"_blank",rel:"noopener noreferrer"},Xs=s("Axios"),Ys=n("h3",{id:"post",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#post","aria-hidden":"true"},"#"),s(" post")],-1),Qs=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"post(path, params, options, rootPath)")])],-1),Zs=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),Js=n("code",null,"{String} [path]",-1),na=s(" \u8BF7\u6C42\u5730\u5740\uFF0C\u6B64\u5730\u5740\u4F1A\u7ECF "),sa=s("getWebPath"),aa=s(" \u8F6C\u6362"),ta=n("li",null,[n("code",null,"{Object} [params]"),s(" \u643A\u5E26\u53C2\u6570")],-1),pa=n("li",null,[n("code",null,"{Object} [options]"),s(" \u8BF7\u6C42\u9009\u9879\uFF0C\u5982\u679C\u4E3A\u5B57\u7B26\u4E32\u5219\u4F1A\u76F4\u63A5\u5F53\u505ArootPath\u53C2\u6570")],-1),ea=n("li",null,[n("code",null,"{String} [rootPath]"),s(" \u53EF\u9009\uFF0C\u5982\u679Coptions\u53C2\u6570\u4E3A\u5B57\u7B26\u4E32\u5219\u6B64\u53C2\u6570\u65E0\u6548")],-1),oa=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token function">post</span><span class="token punctuation">(</span><span class="token string">&#39;api/saveMyInfo&#39;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span>
     <span class="token literal-property property">userName</span><span class="token operator">:</span><span class="token string">&quot;\u7533\u9F99&quot;</span><span class="token punctuation">,</span>
     <span class="token literal-property property">mobile</span><span class="token operator">:</span><span class="token string">&quot;11000000000&quot;</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">done</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">d</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">&#39;\u6A21\u62DFPost\u8BF7\u6C42\u6210\u529F&#39;</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">response</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">&#39;\u6A21\u62DFPost\u8BF7\u6C42\u5931\u8D25&#39;</span><span class="token punctuation">,</span> <span class="token boolean">false</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">always</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token keyword">debugger</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div>`,2),ca=s("\u57FA\u4E8E "),la={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},ua=s("Axios"),ia=s(" \u7684 post \u8BF7\u6C42\u65B9\u6CD5\u3002"),ra={class:"custom-container tip"},ka=n("p",{class:"custom-container-title"},"TIP",-1),da=n("p",null,"\u66F4\u591A\u7528\u6CD5\u8BF7\u53C2\u8003\uFF1A",-1),ba=s("Axios \u4E2D\u6587\u6587\u6863\uFF1A"),ma={href:"https://www.axios-http.cn/docs/intro",target:"_blank",rel:"noopener noreferrer"},ga=s("Axios\u4E2D\u6587"),ha=s("Axios \u82F1\u6587\u6587\u6863\uFF1A"),_a={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},va=s("Axios\u82F1\u6587"),fa=s("Axios Github\uFF1A"),qa={href:"https://github.com/axios/axios",target:"_blank",rel:"noopener noreferrer"},ya=s("Axios"),ja=n("h3",{id:"all",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#all","aria-hidden":"true"},"#"),s(" all")],-1),Da=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"all(arr)")])],-1),Ia=n("li",null,[n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")]),n("ul",null,[n("li",null,[n("code",null,"{Array} [arr]")])])],-1),xa=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token keyword">function</span> <span class="token function">getUserAccount</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token string">&#39;/user/12345&#39;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
  
  <span class="token keyword">function</span> <span class="token function">getUserPermissions</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token string">&#39;/user/12345/permissions&#39;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token function">all</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token function">getUserAccount</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token function">getUserPermissions</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token keyword">function</span> <span class="token punctuation">(</span><span class="token parameter">results</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">const</span> acct <span class="token operator">=</span> results<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
    <span class="token keyword">const</span> perm <span class="token operator">=</span> results<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div>`,2),Ma=s("\u57FA\u4E8E "),wa={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},Aa=s("Axios"),Pa=s(" \u7684 all \u5E76\u53D1\u8BF7\u6C42\u65B9\u6CD5\u3002"),Oa={class:"custom-container tip"},Sa=n("p",{class:"custom-container-title"},"TIP",-1),Ea=n("p",null,"\u66F4\u591A\u7528\u6CD5\u8BF7\u53C2\u8003\uFF1A",-1),Ta=s("Axios \u4E2D\u6587\u6587\u6863\uFF1A"),Na={href:"https://www.axios-http.cn/docs/intro",target:"_blank",rel:"noopener noreferrer"},Ca=s("Axios\u4E2D\u6587"),Ua=s("Axios \u82F1\u6587\u6587\u6863\uFF1A"),Wa={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},Fa=s("Axios\u82F1\u6587"),Ba=s("Axios Github\uFF1A"),La={href:"https://github.com/axios/axios",target:"_blank",rel:"noopener noreferrer"},za=s("Axios"),Ra=n("h3",{id:"upload",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#upload","aria-hidden":"true"},"#"),s(" upload")],-1),Ka=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"upload(path, file, params, options, rootPath)")])],-1),Va=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),Ga=n("code",null,"{String} [path]",-1),Ha=s(" \u8BF7\u6C42\u5730\u5740\uFF0C\u6B64\u5730\u5740\u4F1A\u7ECF "),$a=s("getWebPath"),Xa=s(" \u8F6C\u6362"),Ya=n("li",null,[n("code",null,"{File} [file]"),s(" \u6587\u4EF6\u5BF9\u8C61")],-1),Qa=n("li",null,[n("code",null,"{Object} [params]"),s(" \u4E0A\u4F20\u65F6\u643A\u5E26\u7684\u53C2\u6570")],-1),Za=n("li",null,[n("code",null,"{Object} [options]"),s(" \u8BF7\u6C42\u9009\u9879\uFF0C\u5982\u679C\u4E3A\u5B57\u7B26\u4E32\u5219\u4F1A\u76F4\u63A5\u5F53\u505ArootPath\u53C2\u6570")],-1),Ja=n("li",null,[n("code",null,"{String} [rootPath]"),s(" \u53EF\u9009\uFF0C\u5982\u679Coptions\u53C2\u6570\u4E3A\u5B57\u7B26\u4E32\u5219\u6B64\u53C2\u6570\u65E0\u6548")],-1),nt=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token function">upload</span><span class="token punctuation">(</span><span class="token string">&#39;api/uploadFileServerUrl&#39;</span><span class="token punctuation">,</span> file<span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token string-property property">&quot;uploadType&quot;</span><span class="token operator">:</span><span class="token string">&quot;custom&quot;</span><span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token punctuation">.</span><span class="token function">done</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">d</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">&#39;\u6A21\u62DF\u4E0A\u4F20\u6587\u4EF6\u6210\u529F&#39;</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">response</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">&#39;\u6A21\u62DF\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25&#39;</span><span class="token punctuation">,</span> <span class="token boolean">false</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">always</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
     <span class="token keyword">debugger</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div>`,2),st=s("\u57FA\u4E8E "),at={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},tt=s("Axios"),pt=s(" \u7684 post \u5B9E\u73B0\u7684\u6587\u4EF6\u4E0A\u4F20\u65B9\u6CD5\u3002 \u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D\u4E3A"),et=n("code",null,"file",-1),ot={class:"custom-container tip"},ct=n("p",{class:"custom-container-title"},"TIP",-1),lt=n("p",null,"\u66F4\u591A\u7528\u6CD5\u8BF7\u53C2\u8003\uFF1A",-1),ut=s("Axios \u4E2D\u6587\u6587\u6863\uFF1A"),it={href:"https://www.axios-http.cn/docs/intro",target:"_blank",rel:"noopener noreferrer"},rt=s("Axios\u4E2D\u6587"),kt=s("Axios \u82F1\u6587\u6587\u6863\uFF1A"),dt={href:"https://axios-http.com/docs/api_intro",target:"_blank",rel:"noopener noreferrer"},bt=s("Axios\u82F1\u6587"),mt=s("Axios Github\uFF1A"),gt={href:"https://github.com/axios/axios",target:"_blank",rel:"noopener noreferrer"},ht=s("Axios"),_t=t(`<h3 id="importfiles" tabindex="-1"><a class="header-anchor" href="#importfiles" aria-hidden="true">#</a> importFiles</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>importFiles(files)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Array} [files]</code> \u8981\u52A0\u8F7D\u7684\u8D44\u6E90\u6570\u7EC4</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token keyword">var</span> configUrl <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getWebPath</span><span class="token punctuation">(</span><span class="token string">&quot;$/js/libs/UEditor/ueditor.config.js&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token keyword">var</span> fileUrl <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>url<span class="token punctuation">.</span><span class="token function">getWebPath</span><span class="token punctuation">(</span><span class="token string">&quot;$/js/libs/UEditor/ueditor.all.js&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>http<span class="token punctuation">.</span><span class="token function">importFiles</span><span class="token punctuation">(</span><span class="token punctuation">[</span>configUrl<span class="token punctuation">,</span>fileUrl<span class="token punctuation">]</span><span class="token punctuation">)</span>
  <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
    <span class="token comment">//\u52A0\u8F7D\u5B8C\u6210</span>
    <span class="token comment">//this.renderEditor();</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  <span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token parameter">err</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
    <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">&quot;\u52A0\u8F7DUEditor.js\u6587\u4EF6\u51FA\u9519&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>       
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div><p>\u52A8\u6001\u52A0\u8F7Djs\u3001css\u7B49\u9759\u6001\u8D44\u6E90\u3002</p></li></ul><h2 id="broadcast" tabindex="-1"><a class="header-anchor" href="#broadcast" aria-hidden="true">#</a> broadcast</h2><p>\u6B64\u5206\u7C7B\u4E3A\u6D88\u606F\u6865\u63A5\u3001\u5E7F\u64AD\u3001\u7EC4\u4EF6\u901A\u4FE1\u7B49\u76F8\u5173\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.broadcast.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="send" tabindex="-1"><a class="header-anchor" href="#send" aria-hidden="true">#</a> send</h3>`,5),vt=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>send(object)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [object]</code></li></ul><p>Object\u7684\u683C\u5F0F\u4E3A\uFF1A</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
    <span class="token property">&quot;type&quot;</span><span class="token operator">:</span>String<span class="token punctuation">,</span>
    <span class="token property">&quot;message&quot;</span><span class="token operator">:</span>any<span class="token punctuation">,</span>
    <span class="token property">&quot;rangeModule&quot;</span><span class="token operator">:</span><span class="token null keyword">null</span>|Array<span class="token punctuation">,</span>
    <span class="token property">&quot;className&quot;</span><span class="token operator">:</span>String<span class="token punctuation">,</span>
    <span class="token property">&quot;globalSend&quot;</span><span class="token operator">:</span>Boolean<span class="token punctuation">,</span>
    <span class="token property">&quot;messageKey&quot;</span><span class="token operator">:</span>String<span class="token punctuation">,</span>
    <span class="token property">&quot;triggerType&quot;</span><span class="token operator">:</span>String<span class="token punctuation">,</span>
    ...
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div><table><thead><tr><th>key</th><th>\u8BF4\u660E</th></tr></thead><tbody><tr><td>type</td><td>\u6D88\u606F\u7C7B\u578B\uFF0C\u5185\u7F6E\u534F\u8BAE\u503C\u53C2\u8003\u4E0B\u65B9</td></tr><tr><td>message</td><td>\u5B9E\u9645\u7684\u6D88\u606F\u5BF9\u8C61</td></tr><tr><td>rangeModule</td><td>\u4E3A\u7A7A\u53D1\u9001\u7ED9\u5168\u90E8\uFF0C\u6307\u5B9A\u7EC4\u4EF6\u5BF9\u8C61\u7684packageid\u503C\uFF0C\u7528\u6CD5\u53C2\u8003\u4E0B\u65B9rangeModule \u83B7\u53D6\u65B9\u5F0F</td></tr><tr><td>className</td><td>\u6307\u5B9A\u7EC4\u4EF6\u7684\u7C7B\u540D\uFF0C\u6BD4\u5982\u53EA\u7ED9\u6587\u672C\u7EC4\u4EF6\uFF08\u7C7B\u540D\uFF1AIText\uFF09\u53D1\u9001\uFF0C\u7136\u540E\u518D\u53BB\u8FC7\u6EE4\u4E0A\u9762\u7684\u503C</td></tr><tr><td>globalSend</td><td>\u5982\u679C\u4E3Atrue\u5219\u5168\u7AD9\u53D1\u9001\u6D88\u606F\uFF08\u5373\u76F8\u90BB\u7684\u8DE8\u9875\u9762\u53D1\u9001\uFF09\uFF0C\u6CE8\u610F\u5168\u7AD9rangeModule\u662F\u65E0\u6548\u7684\uFF0C\u53EA\u6709className\u624D\u6709\u6548\uFF0C\u9ED8\u8BA4\u4E3Afalse</td></tr><tr><td>messageKey</td><td>\u6D88\u606F\u7684key\u503C</td></tr><tr><td>triggerType</td><td>\u6D88\u606F\u53D8\u5316\u89E6\u53D1\u7684\u7C7B\u578B\u503C\uFF0CAT\uFF1A\u81EA\u52A8\u89E6\u53D1\u7684\uFF0CMT\uFF1A\u624B\u52A8\u5207\u6362\u89E6\u53D1\u7684\uFF0COT\uFF1A\u5176\u4ED6\u65B9\u5F0F\u89E6\u53D1\u7684</td></tr><tr><td>...</td><td>\u5176\u4ED6\u81EA\u5B9A\u4E49\u7684\u7C7B\u578B\u503C\uFF0C\u4F46\u662F\u5EFA\u8BAE\u8981\u5728\u7EC4\u4EF6\u6587\u6863\u4E2D\u5199\u660E\u7528\u5904\uFF0C\u65B9\u4FBF\u5176\u4ED6\u7EC4\u4EF6\u914D\u5408\u9002\u7528</td></tr></tbody></table><p><strong>type \u5185\u7F6E\u534F\u8BAE\u503C</strong>\uFF1A</p><ul><li>linkageResult\uFF1A\u7EC4\u4EF6\u8054\u52A8\u4F20\u7ED3\u679C\u503C</li><li>linkageDemand\uFF1A\u7EC4\u4EF6\u8054\u52A8\u4F20\u9700\u6C42\u503C</li><li>linkageReload\uFF1A\u8054\u52A8\u7EC4\u4EF6\u91CD\u65B0\u52A0\u8F7D</li><li>linkageOpenDialog\uFF1A\u6253\u5F00\u5F39\u7A97</li><li>linkageCloseDialog\uFF1A\u5173\u95ED\u5F39\u7A97</li><li>linkageShowModule\uFF1A\u663E\u793A\u7EC4\u4EF6</li><li>linkageHideModule\uFF1A\u9690\u85CF\u7EC4\u4EF6</li><li>linkageResetDefaultValue\uFF1A\u91CD\u7F6E\u9ED8\u8BA4\u503C</li><li>pageResize\uFF1A\u9875\u9762\u5927\u5C0F\u8C03\u6574\u901A\u77E5</li></ul><p><strong>rangeModule \u83B7\u53D6\u65B9\u5F0F</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//rangeModule \u9700\u8981\u7684\u6570\u7EC4</span>
  <span class="token keyword">var</span> moduleIdArray <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
  <span class="token comment">/*
  \u6B64\u5904\u4E3Avue\u7684\u5199\u6CD5\uFF0C
  propData\u4E3A\u7EC4\u4EF6\u5C5E\u6027\u7684\u5B9E\u9645\u8BBE\u7F6E\u503C\u5BF9\u8C61\uFF0C
  linkageDemandPageModule\u4E3A\u5177\u4F53\u7684\u5C5E\u6027\u503C\uFF08\u8FD9\u91CC\u4EE3\u8868\u4E3A\u4E0B\u62C9\u6846\u8054\u52A8\u7684\u7EC4\u4EF6\u8303\u56F4\uFF09\uFF0C
  \u4F7F\u7528\u4E86\u7EC4\u4EF6\u5C5E\u6027\u63A7\u4EF6type\u4E3ApageModuleSelect\u7684\u5C5E\u6027\u63A7\u4EF6
  */</span>
  <span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>linkageDemandPageModule<span class="token punctuation">.</span><span class="token function">forEach</span><span class="token punctuation">(</span><span class="token parameter">item</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span>
    moduleIdArray<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>item<span class="token punctuation">.</span>moduleId<span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br></div></div></li>`,2),ft=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//\u4E0B\u62C9\u6846\u9009\u62E9\u7684\u5BF9\u8C61</span>
  <span class="token keyword">var</span> selectObject <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
  <span class="token comment">//rangeModule \u9700\u8981\u7684\u6570\u7EC4</span>
  <span class="token keyword">var</span> moduleIdArray <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
  <span class="token comment">/*
  \u6B64\u5904\u4E3Avue\u7684\u5199\u6CD5\uFF0C
  propData\u4E3A\u7EC4\u4EF6\u5C5E\u6027\u7684\u5B9E\u9645\u8BBE\u7F6E\u503C\u5BF9\u8C61\uFF0C
  linkageDemandPageModule\u4E3A\u5177\u4F53\u7684\u5C5E\u6027\u503C\uFF08\u8FD9\u91CC\u4EE3\u8868\u4E3A\u4E0B\u62C9\u6846\u8054\u52A8\u7684\u7EC4\u4EF6\u8303\u56F4\uFF09\uFF0C
  \u4F7F\u7528\u4E86\u7EC4\u4EF6\u5C5E\u6027\u63A7\u4EF6type\u4E3ApageModuleSelect\u7684\u5C5E\u6027\u63A7\u4EF6
  */</span>
  <span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>linkageDemandPageModule<span class="token punctuation">.</span><span class="token function">forEach</span><span class="token punctuation">(</span><span class="token parameter">item</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span>
    moduleIdArray<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>item<span class="token punctuation">.</span>moduleId<span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token doc-comment comment">/**
   * formFiledKey\u4EE3\u8868\u4E3A\u8868\u5355\u5B57\u6BB5\u7684key\uFF0C\u8FD9\u91CC\u53EA\u662F\u505A\u793A\u4F8B\uFF0C\u5B9E\u9645\u8BF7\u6839\u636E\u81EA\u5DF1\u5B9A\u4E49\u7684\u5C5E\u6027\u4E0E\u9700\u6C42\u4FEE\u6539
   * ctrlId\u4EE3\u8868\u7EC4\u4EF6\u7684id\uFF0C\u4E5F\u662F\u81EA\u5DF1\u5B9A\u4E49\u7684
   * option\u4EE3\u8868\u89E6\u53D1\u6D88\u606F\u6240\u53D8\u52A8\u7684\u7C7B\u578B\uFF0CAT\uFF1A\u81EA\u52A8\u89E6\u53D1\u7684\uFF08\u6BD4\u5982\u6570\u636E\u56DE\u663E\u7ED1\u5B9A\u5207\u6362\u7684\uFF09\uFF0CMT\uFF1A\u624B\u52A8\u89E6\u53D1\u7684\uFF08\u6BD4\u5982\u624B\u52A8\u5207\u6362\u4E0B\u62C9\u6846\u503C\uFF09
   */</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span><span class="token function">send</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
    <span class="token literal-property property">type</span><span class="token operator">:</span><span class="token string">&quot;linkageDemand&quot;</span><span class="token punctuation">,</span>
    <span class="token literal-property property">message</span><span class="token operator">:</span>selectObject<span class="token punctuation">,</span>
    <span class="token literal-property property">rangeModule</span><span class="token operator">:</span>moduleIdArray<span class="token punctuation">,</span>
    <span class="token literal-property property">messageKey</span><span class="token operator">:</span><span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>formFiledKey<span class="token operator">||</span><span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>ctrlId<span class="token punctuation">,</span>
    <span class="token literal-property property">triggerType</span><span class="token operator">:</span>option<span class="token operator">===</span><span class="token boolean">true</span><span class="token operator">?</span><span class="token string">&#39;AT&#39;</span><span class="token operator">:</span><span class="token punctuation">(</span>option<span class="token operator">?</span><span class="token string">&#39;MT&#39;</span><span class="token operator">:</span><span class="token string">&#39;OT&#39;</span><span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br></div></div><p>\u7528\u4E8E\u7EC4\u4EF6\u76F4\u63A5\u7684\u6D88\u606F\u53D1\u9001\uFF0C\u6D88\u606F\u5E7F\u64AD\uFF0C\u7EC4\u4EF6\u4E4B\u95F4\u7684\u901A\u4FE1\u7B49\u7B49\u3002</p>`,3),qt={class:"custom-container tip"},yt=n("p",{class:"custom-container-title"},"TIP",-1),jt=s("\u7EC4\u4EF6\u63A5\u6536\u6D88\u606F\u8BF7\u53C2\u8003\uFF1A\u7EC4\u4EF6\u5F00\u53D1\u7684"),Dt=s("\u7EC4\u4EF6\u901A\u4FE1"),It=s(" \u6216 "),xt=s("\u5185\u7F6E\u65B9\u6CD5"),Mt=s(" - "),wt=s("receiveBroadcastMessage"),At=s("\u7EC4\u4EF6\u5185\u7F6E\u534F\u8BAE\u503C\u8BE6\u7EC6\u8BF7\u53C2\u8003\uFF1A"),Pt=s("\u7EC4\u4EF6\u901A\u4FE1-\u5185\u7F6E\u901A\u4FE1\u534F\u8BAE"),Ot=n("h3",{id:"getmodulecontextvalue",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#getmodulecontextvalue","aria-hidden":"true"},"#"),s(" getModuleContextValue")],-1),St=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getModuleContextValue(pageModuleList,groupKey)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Array} [pageModuleList]</code> \u53EF\u9009\uFF0C\u7EC4\u4EF6\u7684\u96C6\u5408</li><li><code>{String} [groupKey]</code> \u53EF\u9009\uFF0C\u7EC4\u4EF6\u7684\u5206\u7EC4key\uFF0C\u8981\u4F7F\u7528\u6B64\u53C2\u6570\uFF08\u7EC4\u4EF6\u7684\u5206\u7EC4\u5C5E\u6027\uFF09\u7684\u8BDD\u7EC4\u4EF6\u5C5E\u6027\u7684<code>bindKey</code>\u5FC5\u987B\u4E3A<code>formGroupKey</code>\u503C\u3002</li></ul><p>pageModuleList\u7684\u683C\u5F0F\u4E3A\uFF1A</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">[</span><span class="token punctuation">{</span>
    <span class="token property">&quot;moduleId&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u7EC4\u4EF6\u7684packageid&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;moduleName&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u7EC4\u4EF6\u7684asName&quot;</span>
  <span class="token punctuation">}</span><span class="token punctuation">]</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code>|<code>{resultData:\u7EC4\u4EF6\u8FD4\u56DE\u7684\u6570\u636E\u5BF9\u8C61,errorData:&quot;\u7EC4\u4EF6\u9A8C\u8BC1\u7684\u9519\u8BEF\u7684\u6570\u636E\u5BF9\u8C61&quot;}</code></p></li>`,3),Et=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code> <span class="token doc-comment comment">/**
   * \u7EC4\u4EF6\u8303\u56F4\u9009\u62E9\u8FD4\u56DE\u7684\u683C\u5F0F\uFF1A
    * [
    *  <span class="token punctuation">{</span>
    *  moduleId:packageid,
    *  moduleName:asName
    *  <span class="token punctuation">}</span>
    * ]
    */</span>
  <span class="token keyword">let</span> pageModuleSelectDataMultiple <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>pageModuleSelectDataMultiple<span class="token punctuation">;</span>
  <span class="token comment">//\u8868\u5355\u5206\u7EC4\u6807\u8BC6</span>
  <span class="token keyword">let</span> formGroupKey <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>formGroupKey<span class="token punctuation">;</span>
  <span class="token comment">//\u6240\u6709\u8FD4\u56DE\u7ED3\u679C</span>
  <span class="token keyword">let</span> moduleAllData <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span><span class="token function">getModuleContextValue</span><span class="token punctuation">(</span>pageModuleSelectDataMultiple<span class="token punctuation">,</span>formGroupKey<span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token keyword">if</span><span class="token punctuation">(</span>moduleAllData<span class="token punctuation">.</span>errorData<span class="token punctuation">.</span>length<span class="token operator">&gt;</span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
    <span class="token comment">//\u6709\u6821\u9A8C\u5931\u8D25\u7684\uFF0C\u4E0D\u63D0\u4EA4\u6570\u636E</span>
    <span class="token keyword">return</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>
  <span class="token comment">//\u9A8C\u8BC1\u901A\u8FC7\uFF0C\u53EF\u4EE5\u5BF9 moduleAllData.resultData\u8FDB\u884C\u63D0\u4EA4\u5904\u7406</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br></div></div><p>\u7528\u4E8E\u83B7\u53D6\u7EC4\u4EF6\u5185\u90E8\u5904\u7406\u540E\u7684\u4E0A\u4E0B\u6587\u6570\u636E\u7ED3\u679C\uFF0C\u53EF\u7528\u4E8E\u7EC4\u4EF6\u7684\u6570\u636E\u83B7\u53D6\u3001\u8FDB\u884C\u6574\u4F53\u8868\u5355\u6570\u636E\u63D0\u4EA4\u81F3\u540E\u7AEF\u4FDD\u5B58\u7B49\u7B49\u529F\u80FD\u9700\u6C42\u3002</p>`,3),Tt={class:"custom-container tip"},Nt=n("p",{class:"custom-container-title"},"TIP",-1),Ct=s("\u83B7\u53D6\u7EC4\u4EF6\u5904\u7406\u540E\u7ED3\u679C\u9700\u8981\u7EC4\u4EF6\u63D0\u4F9B\u4E86\u5185\u90E8\u65B9\u6CD5\uFF1A\u7EC4\u4EF6\u5F00\u53D1\u7684"),Ut=s("\u5185\u7F6E\u65B9\u6CD5"),Wt=s(" - "),Ft=s("getContextValue"),Bt=t(`<h3 id="getrangemodule" tabindex="-1"><a class="header-anchor" href="#getrangemodule" aria-hidden="true">#</a> getRangeModule</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getRangeModule(pageModuleList,groupKey)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Array} [pageModuleList]</code> \u5FC5\u9009\uFF0C\u7EC4\u4EF6\u7684\u96C6\u5408</li><li><code>{String} [groupKey]</code> \u5FC5\u9009\uFF0C\u7EC4\u4EF6\u7684\u5206\u7EC4key\uFF0C\u8981\u4F7F\u7528\u6B64\u53C2\u6570\uFF08\u7EC4\u4EF6\u7684\u5206\u7EC4\u5C5E\u6027\uFF09\u7684\u8BDD\u7EC4\u4EF6\u5C5E\u6027\u7684<code>bindKey</code>\u5FC5\u987B\u4E3A<code>formGroupKey</code>\u503C\u3002</li></ul><p>pageModuleList\u7684\u683C\u5F0F\u4E3A\uFF1A</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">[</span><span class="token punctuation">{</span>
    <span class="token property">&quot;moduleId&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u7EC4\u4EF6\u7684packageid&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;moduleName&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u7EC4\u4EF6\u7684asName&quot;</span>
  <span class="token punctuation">}</span><span class="token punctuation">]</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Array</code>|<code>[&quot;packageid&quot;,...]</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token doc-comment comment">/**
   * \u7EC4\u4EF6\u8303\u56F4\u9009\u62E9\u8FD4\u56DE\u7684\u683C\u5F0F\uFF1A
    * [
    *  <span class="token punctuation">{</span>
    *  moduleId:packageid,
    *  moduleName:asName
    *  <span class="token punctuation">}</span>
    * ]
    */</span>
  <span class="token keyword">let</span> pageModuleSelectDataMultiple <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>pageModuleSelectDataMultiple<span class="token punctuation">;</span>
  <span class="token comment">//\u8868\u5355\u5206\u7EC4\u6807\u8BC6</span>
  <span class="token keyword">let</span> formGroupKey <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>propData<span class="token punctuation">.</span>formGroupKey<span class="token punctuation">;</span>
  <span class="token keyword">let</span> moduleIdArray <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span><span class="token function">getRangeModule</span><span class="token punctuation">(</span>pageModuleSelectDataMultiple<span class="token punctuation">,</span>formGroupKey<span class="token punctuation">)</span>
  <span class="token comment">//\u83B7\u53D6\u540E\u53EF\u7528\u4E8E\u53D1\u9001 linkageResetDefaultValue\uFF1A\u91CD\u7F6E\u9ED8\u8BA4\u503C \u7C7B\u578B\u8FDB\u884C\u8868\u5355\u91CD\u7F6E\u7B49\u7B49\u7528\u9014</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br></div></div><p>\u6839\u636E\u63D0\u4F9B\u7684\u7EC4\u4EF6\u96C6\u5408\u548C\u7EC4\u4EF6\u5206\u7EC4key\u6765\u83B7\u53D6\u6240\u6709\u7EC4\u4EF6\u7684 packageid\u3002</p></li></ul><h3 id="opendialog" tabindex="-1"><a class="header-anchor" href="#opendialog" aria-hidden="true">#</a> openDialog</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>openDialog(option)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [option]</code></li></ul><p>option\u7684\u683C\u5F0F\u4E3A\uFF1A</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
    <span class="token property">&quot;moduleId&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u7A97\u53E3ID&quot;</span><span class="token punctuation">,</span>
    <span class="token comment">/*\u5F53\u53EA\u6709\u4E00\u4E2Aiframe\u7684\u65F6\u5019\u76F4\u63A5\u4E3Aiframe\u7684\u5730\u5740string\u7C7B\u578B\u5373\u53EF\uFF0C
    \u5F53\u5F39\u51FA\u7A97\u5185\u6709\u591A\u4E2Aiframe\u65F6\u5019\u8BF7\u4F7F\u7528\u6570\u7EC4\u5F62\u5F0F\uFF0C
    [{name:&#39;iframe\u7684name&#39;,url:&#39;&#39;}]\uFF0C
    \u5982\u679C\u4E3A\u975Eiframe\u5219\u7559\u7A7A\u5373\u53EF*/</span>
    <span class="token property">&quot;openUrl&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u6253\u5F00\u7684url\u5730\u5740&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;success&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5C42\u5F39\u51FA\u540E\u7684\u6210\u529F\u56DE\u8C03\u65B9\u6CD5&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;yes&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u786E\u5B9A\u6309\u94AE\u56DE\u8C03\u65B9\u6CD5&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;cancel&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5173\u95ED\u89E6\u53D1\u7684\u56DE\u8C03&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;end&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5C42\u9500\u6BC1\u540E\u89E6\u53D1\u7684\u56DE\u8C03&quot;</span>
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//\u6BD4\u5982\u6253\u5F00\u7684\u7A97\u53E3\u4E3Aiframe\u5185\u5D4C\u7F51\u9875\u7684\u7A97\u53E3\uFF0C\u8FD9\u4E2A\u7A97\u53E3\u7684\u5185\u5BB9\u662F\u7531\u9875\u9762\u914D\u7F6E\uFF0C\u5E76\u975E\u5355\u4E2A\u7EC4\u4EF6\u63D0\u4F9B\u7684</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span><span class="token function">openDialog</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
    <span class="token string-property property">&quot;moduleId&quot;</span><span class="token operator">:</span><span class="token string">&quot;dkjdfkdfiukjasas123fj123&quot;</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;openUrl&quot;</span><span class="token operator">:</span><span class="token string">&quot;http://www.yunit.cn&quot;</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;success&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;yes&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;cancel&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;end&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div><p>\u7528\u4E8E\u6253\u5F00\u6307\u5B9AID\u7684\u7A97\u53E3\u7C7B\u578B\u7684\u7EC4\u4EF6\uFF0C\u6B64\u65B9\u6CD5\u4E00\u822C\u5728\u9875\u9762\u52A8\u4F5C\u4E2D\u8981\u81EA\u5B9A\u4E49\u6269\u5C55js\u7684\u65F6\u5019\u4F1A\u975E\u5E38\u6709\u7528\u3002</p><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u6B64\u65B9\u6CD5\u53EF\u5168\u7AD9\u6253\u5F00\u7A97\u53E3\uFF08\u5373\u76F8\u90BB\u7684\u8DE8\u9875\u9762\u6253\u5F00\u7A97\u53E3\uFF09</p></div></li></ul><h3 id="closedialog" tabindex="-1"><a class="header-anchor" href="#closedialog" aria-hidden="true">#</a> closeDialog</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>closeDialog(option)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [option]</code></li></ul><p>option\u7684\u683C\u5F0F\u4E3A\uFF1A</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
    <span class="token property">&quot;moduleId&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u7A97\u53E3ID&quot;</span> or <span class="token punctuation">[</span><span class="token string">&quot;\u7A97\u53E3ID1&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;\u7A97\u53E3ID2&quot;</span><span class="token punctuation">]</span>
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span><span class="token function">closeDialog</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token string">&quot;dkjdfkdfiukjasas123fj123&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;233443344354545fgffggf&quot;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u5173\u95ED\u6307\u5B9AID\u7684\u7A97\u53E3\u7C7B\u578B\u7684\u7EC4\u4EF6\uFF0C\u6B64\u65B9\u6CD5\u4E00\u822C\u5728\u9875\u9762\u52A8\u4F5C\u4E2D\u8981\u81EA\u5B9A\u4E49\u6269\u5C55js\u7684\u65F6\u5019\u4F1A\u975E\u5E38\u6709\u7528\u3002</p><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u6B64\u65B9\u6CD5\u53EF\u5168\u7AD9\u5173\u95ED\u7A97\u53E3\uFF08\u5373\u76F8\u90BB\u7684\u8DE8\u9875\u9762\u5173\u95ED\u7A97\u53E3\uFF09</p></div></li></ul><h3 id="opencontrolsetpanel" tabindex="-1"><a class="header-anchor" href="#opencontrolsetpanel" aria-hidden="true">#</a> openControlSetPanel</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>openControlSetPanel(option)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [option]</code></li></ul><p>option\u7684\u683C\u5F0F\u4E3A\uFF1A</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
   <span class="token property">&quot;param&quot;</span><span class="token operator">:</span><span class="token punctuation">{</span>
    <span class="token property">&quot;marketModuleId&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5FC5\u586B\uFF0C\u5E02\u573A\u7EC4\u4EF6\u7684ID\uFF0C\u7EC4\u4EF6\u5185\u53D6this.moduleObject.comId\u5373\u53EF&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;pageId&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5FC5\u586B\uFF0C\u9875\u9762\u7684ID\uFF0C\u76F4\u63A5\u4F7F\u7528 IDM.broadcast.pageModule.id \u5373\u53EF\u83B7\u53D6&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;packageid&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5FC5\u586B\uFF0C\u7EC4\u4EF6\u5B9E\u4F8B\u7684ID\uFF0C\u4E3B\u8981\u7528\u4E8E\u533A\u522B\u9875\u9762\u7684\u540C\u4E00\u4E2A\u7EC4\u4EF6\uFF0C\u76F4\u63A5\u4F7F\u7528 this.moduleObject.packageid \u5373\u53EF\u83B7\u53D6\u5230&quot;</span>
   <span class="token punctuation">}</span><span class="token punctuation">,</span>
   <span class="token property">&quot;showTop&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u9ED8\u8BA4\u4E3Atrue\uFF0C\u8BBE\u7F6E\u662F\u5426\u663E\u793A\u5728\u6700\u9876\u7EA7\u9875\u9762\u4E2D\uFF0C\u8FD9\u6837\u505A\u7684\u76EE\u7684\u662F\u4E3A\u4E86\u5728\u8DE8\u9875\u9762\u7684\u65F6\u5019\u906E\u7F69\u663E\u793A\u5728\u6700\u5916\u9762\uFF0C\u80FD\u8986\u76D6\u6574\u4E2A\u7A97\u53E3&quot;</span><span class="token punctuation">,</span>
   <span class="token property">&quot;success&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5C42\u5F39\u51FA\u540E\u7684\u6210\u529F\u56DE\u8C03\u65B9\u6CD5&quot;</span><span class="token punctuation">,</span>
   <span class="token property">&quot;yes&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u786E\u5B9A\u6309\u94AE\u56DE\u8C03\u65B9\u6CD5&quot;</span><span class="token punctuation">,</span>
   <span class="token property">&quot;reset&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u91CD\u7F6E\u540E\u7684\u56DE\u8C03&quot;</span><span class="token punctuation">,</span>
   <span class="token property">&quot;other&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5173\u95ED\u6216\u5176\u4ED6\u6309\u94AE\u89E6\u53D1\u56DE\u8C03\u65B9\u6CD5&quot;</span>
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>String</code> \u8FD4\u56DE\u63A7\u5236\u4E2D\u5FC3\u7A97\u53E3\u7684ID</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//\u7EC4\u4EF6\u5185\u8C03\u7528</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span><span class="token function">openControlSetPanel</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
    <span class="token string-property property">&quot;param&quot;</span><span class="token operator">:</span><span class="token punctuation">{</span>
      <span class="token string-property property">&quot;marketModuleId&quot;</span><span class="token operator">:</span><span class="token keyword">this</span><span class="token punctuation">.</span>moduleObject<span class="token punctuation">.</span>comId<span class="token punctuation">,</span>
      <span class="token string-property property">&quot;pageId&quot;</span><span class="token operator">:</span><span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span>pageModule<span class="token punctuation">.</span>id<span class="token punctuation">,</span>
      <span class="token string-property property">&quot;packageid&quot;</span><span class="token operator">:</span><span class="token keyword">this</span><span class="token punctuation">.</span>moduleObject<span class="token punctuation">.</span>packageid
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;showTop&quot;</span><span class="token operator">:</span><span class="token boolean">true</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;success&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;yes&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
      <span class="token comment">//\u786E\u5B9A\u540E\u63A7\u5236\u4E2D\u5FC3\u7684\u8868\u5355\u6570\u636E\u4FDD\u5B58\u4E86\uFF0C\u53EF\u4EE5\u518D\u6B21\u8C03\u7528\u83B7\u53D6\u65B9\u6CD5\u83B7\u53D6\u5DF2\u7ECF\u4FDD\u5B58\u7684\u4E2A\u6027\u5316\u7EC4\u4EF6\u5C5E\u6027</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;reset&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
      <span class="token comment">//\u91CD\u7F6E\u540E\u53EF\u91CD\u65B0\u83B7\u53D6\u5230\u521D\u59CB\u503C</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token string-property property">&quot;other&quot;</span><span class="token operator">:</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
      <span class="token comment">//\u5173\u95ED\u6216\u5176\u4ED6\u6309\u94AE\u89E6\u53D1\u56DE\u8C03\u65B9\u6CD5</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br></div></div><p>\u7528\u4E8E\u6253\u5F00\u63A7\u5236\u4E2D\u5FC3\u7684\u8BBE\u7F6E\u7A97\u53E3\uFF0C\u6B64\u65B9\u6CD5\u4E00\u822C\u5728\u9875\u9762\u52A8\u4F5C\u4E2D\u8981\u81EA\u5B9A\u4E49\u6269\u5C55js\u7684\u65F6\u5019\u4F1A\u975E\u5E38\u6709\u7528\u6216\u8005\u7EC4\u4EF6\u5185\u90E8js\u76F4\u63A5\u8C03\u7528\u3002</p><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>\u6B64\u65B9\u6CD5\u53EF\u5168\u7AD9\u6253\u5F00\u63A7\u5236\u4E2D\u5FC3\u7684\u8BBE\u7F6E\u7A97\u53E3\uFF08\u5373\u76F8\u90BB\u7684\u8DE8\u9875\u9762\u6253\u5F00\uFF09</p></div></li></ul><h3 id="closecontrolsetpanel" tabindex="-1"><a class="header-anchor" href="#closecontrolsetpanel" aria-hidden="true">#</a> closeControlSetPanel</h3>`,9),Lt=t(`<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>closeControlSetPanel(option)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [option]</code></li></ul><p>option\u7684\u683C\u5F0F\u4E3A\uFF1A</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
    <span class="token property">&quot;controlSetPanelId&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u63A7\u5236\u9762\u677F\u7A97\u53E3ID&quot;</span>
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div></li>`,2),zt=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span><span class="token function">closeControlSetPanel</span><span class="token punctuation">(</span><span class="token string">&quot;233443344354545fgffggf&quot;</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),Rt=s("\u7528\u4E8E\u5173\u95ED\u6307\u5B9AID\uFF08\u4E0A\u8FF0"),Kt=s("\u6253\u5F00\u65B9\u6CD5"),Vt=s("\u8FD4\u56DE\u7684ID\uFF09\u7684\u63A7\u5236\u4E2D\u5FC3\u7A97\u53E3\uFF0C\u6B64\u65B9\u6CD5\u4E00\u822C\u5728\u9875\u9762\u52A8\u4F5C\u4E2D\u8981\u81EA\u5B9A\u4E49\u6269\u5C55js\u7684\u65F6\u5019\u4F1A\u975E\u5E38\u6709\u7528\u6216\u8005\u7EC4\u4EF6\u5185\u90E8js\u76F4\u63A5\u8C03\u7528\u3002"),Gt=n("div",{class:"custom-container tip"},[n("p",{class:"custom-container-title"},"TIP"),n("p",null,"\u6B64\u65B9\u6CD5\u53EF\u5168\u7AD9\u5173\u95ED\u63A7\u5236\u4E2D\u5FC3\u7684\u8BBE\u7F6E\u7A97\u53E3\uFF08\u5373\u76F8\u90BB\u7684\u8DE8\u9875\u9762\u5173\u95ED\uFF09")],-1),Ht=t(`<h2 id="express" tabindex="-1"><a class="header-anchor" href="#express" aria-hidden="true">#</a> express</h2><p>\u6B64\u5206\u7C7B\u4E3A\u8868\u8FBE\u5F0F\u83B7\u53D6\u5185\u5BB9\u7B49\u76F8\u5173\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.express.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><p><strong>\u8868\u8FBE\u5F0F\u57FA\u7840\u8BED\u6CD5\uFF1A</strong></p><ul><li><p><strong><code>@[a.b.c]</code></strong></p><p>\u7528\u4E8E\u4ECE\u5BF9\u8C61 <code>{a:{b:{c:1}}}</code> \u4E2D\u83B7\u53D6c\u7684\u503C</p></li><li><p><strong><code>@[a[n].b[n].c]</code></strong></p><p>\u7528\u4E8E\u4ECE\u5BF9\u8C61 <code>{a:[{b:[{c:1}]}]}</code> \u4E2D\u83B7\u53D6c\u7684\u503C</p></li><li><p><strong><code>@[url(&#39;abc&#39;)]</code></strong></p><p>\u7528\u4E8E\u4ECE\u5F53\u524D\u9875\u9762\u7684 url \u4E2D\u83B7\u53D6\u53C2\u6570abc\u7684\u503C</p></li><li><p><strong><code>@[has(&#39;@[123]&#39;)]</code></strong></p><p>\u7528\u4E8E\u5224\u65AD\u6307\u5B9A\u7684\u5B57\u7B26\u4E32\u4E2D\u662F\u5426\u5B58\u5728\u8868\u8FBE\u5F0F</p></li><li><p><strong><code>@[filePath(&#39;[{&quot;relativePath&quot;:&quot;abc/1.0.0/main.js&quot;}]&#39;)]</code></strong></p><p>\u7528\u4E8E\u83B7\u53D6\u6570\u7EC4\u6216\u5BF9\u8C61\u4E2D\u7684relativePath\u7684\u503C</p></li><li><p><strong><code>@[map([{\\&quot;abc\\&quot;:\\&quot;123\\&quot;}],0,&#39;abc&#39;)]</code></strong></p><p>\u7528\u4E8E\u83B7\u53D6\u6307\u5B9A\u6570\u7EC4\u4E2D\u7684\u5BF9\u8C61\u7D22\u5F15\u5E76\u4ECE\u5BF9\u8C61\u4E2D\u83B7\u53D6\u6307\u5B9Akey\u7684\u503C</p></li></ul><h3 id="replace" tabindex="-1"><a class="header-anchor" href="#replace" aria-hidden="true">#</a> replace</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>replace(expressStr, data, isFlag)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [expressStr]</code> \u5E26\u6709\u8868\u8FBE\u5F0F\u7684\u5B57\u7B26\u4E32</li><li><code>{Object} [data]</code> \u643A\u5E26\u7684\u6570\u636E\u5BF9\u8C61\uFF0C\u8868\u8FBE\u5F0F\u53EF\u4EE5\u4ECE\u8FD9\u91CC\u9762\u83B7\u53D6</li><li><code>{Boolean} [isFlag]</code> \u672A\u627E\u5230\u662F\u5426\u8FD4\u56DE\u7A7A\u5B57\u7B26\u4E32\uFF0Ctrue\uFF1A\u8FD4\u56DE\u7A7A\u5B57\u7B26\u4E32\uFF0Cfalse\uFF1A\u8FD4\u56DEundefined\uFF0C\u9ED8\u8BA4\u4E3A true</li></ul></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>String</code> \u8FD4\u56DE\u66FF\u6362\u8868\u8FBE\u5F0F\u540E\u7684\u7ED3\u679C</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[a]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">ab</span><span class="token operator">:</span><span class="token number">1233</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;&#39;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[a]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">ab</span><span class="token operator">:</span><span class="token number">1233</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">false</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; undefined</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[a]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1233</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; 1233</span>
  
  <span class="token comment">/*\u5047\u8BBEurl\u4E2D\u643A\u5E26abc=123\u53C2\u6570*/</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[url(&#39;abc&#39;)+&#39;---&#39;+abc]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">abc</span><span class="token operator">:</span><span class="token number">1233</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; &#39;123---1233&#39;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[has(&#39;@[123]&#39;)]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[has(&#39;123&#39;)]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[filePath(&#39;[{\\&quot;relativePath\\&quot;:\\&quot;abc/1.0.0/main.js\\&quot;}]&#39;)]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span>
  <span class="token comment">// =&gt; &#39;abc/1.0.0/main.js&#39;</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[map([{\\&quot;abc\\&quot;:\\&quot;123\\&quot;}],0,&#39;abc&#39;)]&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span>
  
  <span class="token comment">// =&gt; &#39;123&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br></div></div><p>\u7528\u4E8E\u66FF\u6362\u7B2C\u4E00\u4E2A\u53C2\u6570<code>expressStr</code>\u4E2D\u4E66\u5199\u4E86\u8868\u8FBE\u5F0F\u7684\u503C\uFF0C\u5E76\u8FD4\u56DE\u66FF\u6362\u540E\u7684\u7ED3\u679C\u3002\u8FD9\u4E2A\u65B9\u6CD5\u975E\u5E38\u5B9E\u7528\uFF0C\u5728\u7EC4\u4EF6\u5F00\u53D1\u4E2D\u3001\u5C5E\u6027\u586B\u5199\u4E2D\u3001\u9875\u9762\u6269\u5C55js\u4E2D\u90FD\u80FD\u7528\u5230\u3002</p></li></ul><h3 id="eval" tabindex="-1"><a class="header-anchor" href="#eval" aria-hidden="true">#</a> eval</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>eval(expressStr, data)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [expressStr]</code> \u5E26\u6709\u8868\u8FBE\u5F0F\u7684\u811A\u672C\u5B57\u7B26\u4E32</li><li><code>{Object} [data]</code> \u643A\u5E26\u7684\u6570\u636E\u5BF9\u8C61\uFF0C\u8868\u8FBE\u5F0F\u53EF\u4EE5\u4ECE\u8FD9\u91CC\u9762\u83B7\u53D6</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">eval</span><span class="token punctuation">(</span><span class="token string">&quot;alert(@[a])&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">ab</span><span class="token operator">:</span><span class="token number">1233</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; \u5F39\u51FA undefined</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">eval</span><span class="token punctuation">(</span><span class="token string">&quot;alert(@[a])&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">a</span><span class="token operator">:</span><span class="token number">1233</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; \u5F39\u51FA 1233</span>
  
  <span class="token comment">/*\u5047\u8BBEurl\u4E2D\u643A\u5E26abc=123\u53C2\u6570*/</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">eval</span><span class="token punctuation">(</span><span class="token string">&quot;alert(@[url(&#39;abc&#39;)+&#39;---&#39;+abc])&quot;</span><span class="token punctuation">,</span><span class="token punctuation">{</span><span class="token literal-property property">abc</span><span class="token operator">:</span><span class="token number">1233</span><span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; \u5F39\u51FA &#39;123---1233&#39;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p>\u7528\u4E8E\u6267\u884C\u7B2C\u4E00\u4E2A\u53C2\u6570<code>expressStr</code>\u4E2D\u4E66\u5199\u4E86\u8868\u8FBE\u5F0F\u7684\u811A\u672C\u3002</p></li></ul><h3 id="has" tabindex="-1"><a class="header-anchor" href="#has" aria-hidden="true">#</a> has</h3>`,9),$t=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"has(expressStr)")])],-1),Xt=n("li",null,[n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")]),n("ul",null,[n("li",null,[n("code",null,"{String} [expressStr]"),s(" \u5E26\u6709\u8868\u8FBE\u5F0F\u7684\u5B57\u7B26\u4E32")])])],-1),Yt=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">has</span><span class="token punctuation">(</span><span class="token string">&quot;@[url(&#39;abc&#39;)]&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[has(&#39;123&#39;)]&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; false</span>
  
  <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span><span class="token string">&quot;@[has(&#39;@[123]&#39;)]&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; true</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div>`,2),Qt=s("\u7528\u4E8E\u5224\u65AD\u8868\u8FBE\u5F0F\u5B57\u7B26\u4E32\u4E2D\u662F\u5426\u6709\u5408\u683C\u8868\u8FBE\u5F0F\uFF0C\u8868\u8FBE\u5F0F\u8BED\u6CD5\u8BF7\u53C2\u8003\uFF1A"),Zt=s("\u8868\u8FBE\u5F0F\u57FA\u7840\u8BED\u6CD5"),Jt=t(`<h2 id="cachepool" tabindex="-1"><a class="header-anchor" href="#cachepool" aria-hidden="true">#</a> cachePool</h2><p>\u6B64\u5206\u7C7B\u4E3Amap\u7F13\u5B58\u6C60\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u4E0D\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\u76F4\u63A5\u8C03\u7528\uFF0C\u5E76\u4F20\u6700\u5927\u7F13\u5B58\u6C60\u53C2\u6570\uFF08<code>IDM.cachePool(\u6700\u5927\u7F13\u5B58\u6570\u5B57).\u65B9\u6CD5\u540D</code>\uFF09\u8FDB\u884C\u8C03\u7528\u4EE5\u4E0B\u65B9\u6CD5</p><h3 id="put" tabindex="-1"><a class="header-anchor" href="#put" aria-hidden="true">#</a> put</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>put(key, value)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [key]</code></li><li><code>{Object} [value]</code></li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token keyword">var</span> mapCache <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">cachePool</span><span class="token punctuation">(</span><span class="token number">100</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  mapCache<span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">&quot;keystr0&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;123&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  mapCache<span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">&quot;keystr1&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;456&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  mapCache<span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">&quot;keystr2&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;456&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><p>\u6B64\u65B9\u6CD5\u7528\u4E8E\u5F80\u7F13\u5B58\u6C60\u8FFD\u52A0map\u6570\u636E\uFF0C\u5982\u679C\u6570\u91CF\u8D85\u8FC7\u6307\u5B9A\u7684\u6700\u5927\u503C\uFF0C\u5219\u5220\u9664\u524D\u9762\u7684\u7F13\u5B58map\u6570\u636E</p></li></ul><h3 id="get-1" tabindex="-1"><a class="header-anchor" href="#get-1" aria-hidden="true">#</a> get</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>get(key)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [key]</code></li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token keyword">var</span> mapCache <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span><span class="token function">cachePool</span><span class="token punctuation">(</span><span class="token number">2</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  mapCache<span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">&quot;keystr0&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;123&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  mapCache<span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">&quot;keystr1&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;456&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  mapCache<span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">&quot;keystr0&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;456&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  mapCache<span class="token punctuation">.</span><span class="token function">put</span><span class="token punctuation">(</span><span class="token string">&quot;keystr2&quot;</span><span class="token punctuation">,</span><span class="token string">&quot;456&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  
  mapCache<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token string">&quot;keystr0&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; undefined</span>
  
  mapCache<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token string">&quot;keystr2&quot;</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; 456</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div><p>\u6B64\u65B9\u6CD5\u7528\u4E8E\u83B7\u53D6\u7F13\u5B58\u6C60\u4E2D\u7684\u6570\u636E</p></li></ul><h2 id="app" tabindex="-1"><a class="header-anchor" href="#app" aria-hidden="true">#</a> app</h2><p>\u6B64\u5206\u7C7B\u4E3A\u5E94\u7528\u7A0B\u5E8F\u4FE1\u606F\u5B58\u50A8\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.app.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="getappinfo" tabindex="-1"><a class="header-anchor" href="#getappinfo" aria-hidden="true">#</a> getAppInfo</h3>`,9),np=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"getAppInfo()")])],-1),sp=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>app<span class="token punctuation">.</span><span class="token function">getAppInfo</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; {...}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),ap=s("\u7528\u4E8E\u83B7\u53D6\u5F53\u524D\u9875\u9762\u5B58\u50A8\u5171\u4EAB\u5E94\u7528\u7A0B\u5E8F\u4FE1\u606F\uFF0C\u4FE1\u606F\u521D\u59CB\u5316\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),tp=s("\u5E94\u7528\u4FE1\u606F"),pp=n("h3",{id:"setappinfo",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#setappinfo","aria-hidden":"true"},"#"),s(" setAppInfo")],-1),ep=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"setAppInfo(object)")])],-1),op=n("li",null,[n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")]),n("ul",null,[n("li",null,[n("code",null,"{Object} [object]")])])],-1),cp=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>app<span class="token punctuation">.</span><span class="token function">setAppInfo</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">appName</span><span class="token operator">:</span><span class="token string">&quot;IDM\u4F4E\u4EE3\u7801&quot;</span><span class="token punctuation">,</span><span class="token literal-property property">appId</span><span class="token operator">:</span><span class="token string">&quot;abc123&quot;</span><span class="token punctuation">,</span><span class="token operator">...</span><span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),lp=s("\u7528\u4E8E\u8BBE\u7F6E\u5F53\u524D\u9875\u9762\u5171\u4EAB\u5E94\u7528\u7A0B\u5E8F\u4FE1\u606F\uFF0C\u4FE1\u606F\u521D\u59CB\u5316\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),up=s("\u5E94\u7528\u4FE1\u606F"),ip=n("h2",{id:"user",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#user","aria-hidden":"true"},"#"),s(" user")],-1),rp=n("p",null,"\u6B64\u5206\u7C7B\u4E3A\u5F53\u524D\u767B\u5F55\u7528\u6237\u4FE1\u606F\u5B58\u50A8\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.user.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002",-1),kp=n("h3",{id:"getcurrentuserinfo",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#getcurrentuserinfo","aria-hidden":"true"},"#"),s(" getCurrentUserInfo")],-1),dp=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"getCurrentUserInfo()")])],-1),bp=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>user<span class="token punctuation">.</span><span class="token function">getCurrentUserInfo</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; {...}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),mp=s("\u7528\u4E8E\u83B7\u53D6\u5F53\u524D\u767B\u5F55\u7528\u6237\u4FE1\u606F\uFF0C\u4FE1\u606F\u521D\u59CB\u5316\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),gp=s("\u7528\u6237\u4FE1\u606F"),hp=n("h3",{id:"setcurrentuserinfo",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#setcurrentuserinfo","aria-hidden":"true"},"#"),s(" setCurrentUserInfo")],-1),_p=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"setCurrentUserInfo(object)")])],-1),vp=n("li",null,[n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")]),n("ul",null,[n("li",null,[n("code",null,"{Object} [object]")])])],-1),fp=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>user<span class="token punctuation">.</span><span class="token function">setCurrentUserInfo</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token literal-property property">userName</span><span class="token operator">:</span><span class="token string">&quot;IDM\u65E0\u9650&quot;</span><span class="token punctuation">,</span><span class="token literal-property property">userId</span><span class="token operator">:</span><span class="token string">&quot;user123&quot;</span><span class="token punctuation">,</span><span class="token operator">...</span><span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),qp=s("\u7528\u4E8E\u8BBE\u7F6E\u5F53\u524D\u767B\u5F55\u7528\u6237\u4FE1\u606F\uFF0C\u4FE1\u606F\u521D\u59CB\u5316\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),yp=s("\u7528\u6237\u4FE1\u606F"),jp=n("h2",{id:"theme",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#theme","aria-hidden":"true"},"#"),s(" theme")],-1),Dp=n("p",null,"\u6B64\u5206\u7C7B\u4E3A\u5F53\u524D\u767B\u5F55\u7528\u6237\u4E3B\u9898\u5B58\u50A8\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.theme.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002",-1),Ip=n("h3",{id:"getcurrentthemeinfo",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#getcurrentthemeinfo","aria-hidden":"true"},"#"),s(" getCurrentThemeInfo")],-1),xp=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"getCurrentThemeInfo()")])],-1),Mp=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>theme<span class="token punctuation">.</span><span class="token function">getCurrentThemeInfo</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token comment">// =&gt; {...}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),wp=s("\u7528\u4E8E\u83B7\u53D6\u5F53\u524D\u7528\u6237\u8BBE\u7F6E\u7684\u4E3B\u9898\u4FE1\u606F\uFF0C\u4FE1\u606F\u521D\u59CB\u5316\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),Ap=s("\u5E94\u7528\u4E3B\u9898"),Pp=n("h3",{id:"setcurrentthemeinfo",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#setcurrentthemeinfo","aria-hidden":"true"},"#"),s(" setCurrentThemeInfo")],-1),Op=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"setCurrentThemeInfo(object)")])],-1),Sp=n("li",null,[n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")]),n("ul",null,[n("li",null,[n("code",null,"{String} [object]")])])],-1),Ep=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>theme<span class="token punctuation">.</span><span class="token function">setCurrentThemeInfo</span><span class="token punctuation">(</span><span class="token string">&quot;blue&quot;</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),Tp=s("\u7528\u4E8E\u8BBE\u7F6E\u5F53\u524D\u767B\u5F55\u7528\u6237\u7684\u4E3B\u9898\u4FE1\u606F\uFF0C\u4FE1\u606F\u521D\u59CB\u5316\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),Np=s("\u5E94\u7528\u4E3B\u9898"),Cp=n("h2",{id:"watermark",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#watermark","aria-hidden":"true"},"#"),s(" watermark")],-1),Up=n("p",null,"\u6B64\u5206\u7C7B\u4E3A\u6C34\u5370\u8BBE\u7F6E\u4E0E\u5173\u95ED\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.watermark.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002",-1),Wp=n("h3",{id:"set",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#set","aria-hidden":"true"},"#"),s(" set")],-1),Fp=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"set($el, type, mainContent, text1, option)")])],-1),Bp=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),Lp=n("li",null,[n("code",null,"{HTMLElement} [$el]"),s(" \u8981\u6DFB\u52A0\u5230\u7684\u5143\u7D20\u4F4D\u7F6E")],-1),zp=n("li",null,[n("code",null,"{Number} [type]"),s(" 0\uFF1A\u80CC\u666F\u6C34\u5370\uFF0C1\uFF1A\u6C34\u5370\u7F6E\u9876")],-1),Rp=n("code",null,"{String} [mainContent]",-1),Kp=s(" \u53EF\u4E3A\u56FE\u7247\u8DEF\u5F84\uFF08\u53EA\u652F\u6301\u5E26.png,.jpg,.jpeg\u540E\u7F00\u7684\uFF09\uFF0C\u53EF\u4E3A\u6587\u5B57\u5185\u5BB9\u3002\u5982\u679C\u4E3A\u8DEF\u5F84\u4F1A\u7ECF\u8FC7IDM\u63D0\u4F9B\u7684\u6838\u5FC3\u65B9\u6CD5"),Vp=n("code",null,"IDM.url.getWebPath",-1),Gp=s("\u8FDB\u884C\u5730\u5740\u8F6C\u6362\uFF0C\u66F4\u591A\u7528\u6CD5\u8BF7\u53C2\u8003\uFF1A "),Hp=s("\u6807\u51C6API"),$p=n("li",null,[n("code",null,"{String} [text1]"),s(" \u518D\u6B21\u8981\u6DFB\u52A0\u7684\u6587\u5B57\u5185\u5BB9")],-1),Xp=n("li",null,[n("code",null,"{Object} [option]"),s(" \u5176\u4ED6\u9009\u9879 option\u7684\u683C\u5F0F\u4E3A\uFF1A")],-1),Yp=t(`<div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
    <span class="token property">&quot;fontColor&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5B57\u4F53\u989C\u8272&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;fontSize&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5B57\u4F53\u5927\u5C0F\uFF0C\u4F8B\u5982\uFF1A18px&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;width&quot;</span><span class="token operator">:</span> <span class="token string">&quot;\u6C34\u5370\u5BBD\u5EA6\uFF0C\u4F8B\u5982\uFF1A200&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;height&quot;</span><span class="token operator">:</span> <span class="token string">&quot;\u6C34\u5370\u9AD8\u5EA6\uFF0C\u4F8B\u5982\uFF1A200&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;rotate&quot;</span><span class="token operator">:</span> <span class="token string">&quot;\u65CB\u8F6C\u89D2\u5EA6\uFF0C\u4F8B\u5982\uFF1A45&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;imgSize&quot;</span><span class="token operator">:</span> <span class="token string">&quot;\u56FE\u7247\u5927\u5C0F\uFF0C\u4F8B\u5982\uFF1A44&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;imgLeftSize&quot;</span><span class="token operator">:</span> <span class="token string">&quot;\u56FE\u7247\u504F\u79FB(X)\uFF0C\u4F8B\u5982\uFF1A11&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;fontLeftSize&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u6587\u5B57\u504F\u79FB(X)\uFF0C\u4F8B\u5982\uFF1A11&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;opacity&quot;</span><span class="token operator">:</span> <span class="token string">&quot;\u6C34\u5370\u900F\u660E\u5EA6\uFF0C\u4F8B\u5982\uFF1A0.11&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;topSize&quot;</span><span class="token operator">:</span> <span class="token string">&quot;\u6574\u4F53\u504F\u79FB(Y)\uFF0C\u4F8B\u5982\uFF1A11&quot;</span><span class="token punctuation">,</span>
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div>`,1),Qp=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//propData\u4E3A\u9875\u9762\u8BBE\u7F6E\u7684\u5C5E\u6027\u6570\u636E</span>
  <span class="token keyword">var</span> _watermarkFont <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span>propData<span class="token punctuation">.</span>watermarkFont<span class="token punctuation">,</span> <span class="token punctuation">{</span>
      <span class="token constant">IDM</span><span class="token operator">:</span> <span class="token constant">IDM</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
    _watermarkFont1 <span class="token operator">=</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>express<span class="token punctuation">.</span><span class="token function">replace</span><span class="token punctuation">(</span>propData<span class="token punctuation">.</span>watermarkFont1<span class="token punctuation">,</span> <span class="token punctuation">{</span>
      <span class="token constant">IDM</span><span class="token operator">:</span> <span class="token constant">IDM</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//\u6587\u5B57\u6C34\u5370</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>watermark<span class="token punctuation">.</span><span class="token function">set</span><span class="token punctuation">(</span>
    <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>idm_page_root<span class="token punctuation">,</span>
    propData<span class="token punctuation">.</span>watermarkZindex<span class="token punctuation">,</span>
    propData<span class="token punctuation">.</span>watermarkType <span class="token operator">!=</span> <span class="token string">&quot;font&quot;</span>
      <span class="token operator">?</span> propData<span class="token punctuation">.</span>watermarkImg
      <span class="token operator">:</span> _watermarkFont<span class="token punctuation">,</span>
    propData<span class="token punctuation">.</span>watermarkType <span class="token operator">==</span> <span class="token string">&quot;image&quot;</span> <span class="token operator">?</span> <span class="token string">&quot;&quot;</span> <span class="token operator">:</span> _watermarkFont1<span class="token punctuation">,</span>
    <span class="token punctuation">{</span>
      <span class="token literal-property property">fontColor</span><span class="token operator">:</span>
        propData<span class="token punctuation">.</span>watermarkColor <span class="token operator">&amp;&amp;</span> propData<span class="token punctuation">.</span>watermarkColor<span class="token punctuation">.</span>hex8<span class="token punctuation">,</span>
      <span class="token literal-property property">fontSize</span><span class="token operator">:</span> <span class="token template-string"><span class="token template-punctuation string">\`</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">\${</span>propData<span class="token punctuation">.</span>watermarkFontSize<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">px</span><span class="token template-punctuation string">\`</span></span><span class="token punctuation">,</span>
      <span class="token literal-property property">width</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkSize<span class="token punctuation">,</span>
      <span class="token literal-property property">height</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkSize<span class="token punctuation">,</span>
      <span class="token literal-property property">rotate</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkRotate<span class="token punctuation">,</span>
      <span class="token literal-property property">imgSize</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkImgSize<span class="token punctuation">,</span>
      <span class="token literal-property property">imgLeftSize</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkImgLeftSize<span class="token punctuation">,</span>
      <span class="token literal-property property">fontLeftSize</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkFontLeftSize<span class="token punctuation">,</span>
      <span class="token literal-property property">opacity</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkOpacity <span class="token operator">/</span> <span class="token number">100</span><span class="token punctuation">,</span>
      <span class="token literal-property property">topSize</span><span class="token operator">:</span> propData<span class="token punctuation">.</span>watermarkTopSize<span class="token punctuation">,</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br></div></div>`,2),Zp=s("\u7528\u4E8E\u8BBE\u7F6E\u6C34\u5370\u6837\u5F0F\uFF0C\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),Jp=s("\u6C34\u5370\u8BBE\u7F6E"),ne=n("h3",{id:"close",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#close","aria-hidden":"true"},"#"),s(" close")],-1),se=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"close($el)")])],-1),ae=n("li",null,[n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")]),n("ul",null,[n("li",null,[n("code",null,"{HTMLElement} [$el]"),s(" \u8981\u79FB\u9664\u6C34\u5370\u7684\u5143\u7D20\u4F4D\u7F6E")])])],-1),te=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>watermark<span class="token punctuation">.</span><span class="token function">close</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>idm_page_root<span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div>`,2),pe=s("\u7528\u4E8E\u79FB\u9664\u6C34\u5370\u6837\u5F0F\uFF0C\u53C2\u8003\uFF1A\u9875\u9762\u5C5E\u6027\u7684 "),ee=s("\u6C34\u5370\u8BBE\u7F6E"),oe=t(`<h2 id="message" tabindex="-1"><a class="header-anchor" href="#message" aria-hidden="true">#</a> message</h2><p>\u6B64\u5206\u7C7B\u4E3A\u6D88\u606F\u63D0\u9192\u529F\u80FD\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.message.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="config" tabindex="-1"><a class="header-anchor" href="#config" aria-hidden="true">#</a> config</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>config(cfg)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [cfg]</code> \u5168\u5C40\u914D\u7F6E\u4FE1\u606F cfg\u7684\u683C\u5F0F\u4E3A\uFF1A</li></ul><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
    <span class="token property">&quot;position&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u4F4D\u7F6E\uFF0C\u4EC5\u652F\u6301&#39;center&#39;,&#39;right&#39;,&#39;left&#39;,\u9ED8\u8BA4&#39;center&#39;&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;type&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u7C7B\u578B\uFF0C\u652F\u6301&#39;info&#39;,&#39;warning&#39;,&#39;success&#39;,&#39;error&#39;,&#39;loading&#39;&quot;</span><span class="token punctuation">,</span> 
    <span class="token property">&quot;showClose&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u662F\u5426\u663E\u793A\u5173\u95ED\u56FE\u6807\uFF0C\u9ED8\u8BA4\u4E3Afalse\u4E0D\u663E\u793A&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;timeout&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u591A\u4E45\u540E\u81EA\u52A8\u5173\u95ED\uFF0C\u5355\u4F4Dms,\u9ED8\u8BA42500&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;autoClose&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u662F\u5426\u81EA\u52A8\u5173\u95ED\uFF0C\u9ED8\u8BA4true,\u6CE8\u610F\u5728type\u4E3Aloading\u7684\u65F6\u5019\u81EA\u52A8\u5173\u95ED\u4E3Afalse&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;content&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u63D0\u793A\u7684\u5185\u5BB9&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;onClose&quot;</span><span class="token operator">:</span><span class="token string">&quot;\u5173\u95ED\u7684\u56DE\u8C03\u51FD\u6570&quot;</span><span class="token punctuation">,</span>
    <span class="token property">&quot;maxNums&quot;</span><span class="token operator">:</span><span class="token string">&quot;5 \u6700\u5927\u7684\u63D0\u9192\u6570\u91CF&quot;</span>
  <span class="token punctuation">}</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//\u8BBE\u7F6E\u6D88\u606F\u5F39\u51FA\u7684\u9ED8\u8BA4\u914D\u7F6E\u4FE1\u606F</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">config</span><span class="token punctuation">(</span><span class="token punctuation">{</span><span class="token string-property property">&quot;position&quot;</span><span class="token operator">:</span><span class="token string">&quot;right&quot;</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token comment">//\u8C03\u7528\u6210\u529F\u6D88\u606F\u63D0\u9192\uFF0C\u663E\u793A\u5728\u53F3\u8FB9</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token string">&quot;\u4FDD\u5B58\u6210\u529F\uFF01&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><p>\u7528\u4E8E\u5168\u5C40\u4FEE\u6539\u8986\u76D6\u6D88\u606F\u63D0\u9192\u7684\u9ED8\u8BA4\u914D\u7F6E\u9879\u3002</p></li></ul><h3 id="info" tabindex="-1"><a class="header-anchor" href="#info" aria-hidden="true">#</a> info</h3>`,5),ce=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"info(txt,config)")])],-1),le=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),ue=n("li",null,[n("code",null,"{String} [txt]"),s(" \u8981\u63D0\u9192\u7684\u5185\u5BB9")],-1),ie=n("code",null,"{Object} [config]",-1),re=s(" \u53EF\u4FEE\u6539\u8986\u76D6\u9ED8\u8BA4\u914D\u7F6E\u9879\uFF0C\u8BF7\u53C2\u8003"),ke=s("config"),de=t(`<li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code> \u5F53\u524D\u63D0\u9192\u7684\u5BF9\u8C61</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">info</span><span class="token punctuation">(</span><span class="token string">&quot;\u4FE1\u606F\u63D0\u9192&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u5F39\u51FA\u4FE1\u606F\u63D0\u9192</p></li>`,2),be=n("h3",{id:"warning",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#warning","aria-hidden":"true"},"#"),s(" warning")],-1),me=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"warning(txt,config)")])],-1),ge=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),he=n("li",null,[n("code",null,"{String} [txt]"),s(" \u8981\u63D0\u9192\u7684\u5185\u5BB9")],-1),_e=n("code",null,"{Object} [config]",-1),ve=s(" \u53EF\u4FEE\u6539\u8986\u76D6\u9ED8\u8BA4\u914D\u7F6E\u9879\uFF0C\u8BF7\u53C2\u8003"),fe=s("config"),qe=t(`<li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code> \u5F53\u524D\u63D0\u9192\u7684\u5BF9\u8C61</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token string">&quot;\u8B66\u544A\u63D0\u9192&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u5F39\u51FA\u8B66\u544A\u63D0\u9192</p></li>`,2),ye=n("h3",{id:"success",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#success","aria-hidden":"true"},"#"),s(" success")],-1),je=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"success(txt,config)")])],-1),De=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),Ie=n("li",null,[n("code",null,"{String} [txt]"),s(" \u8981\u63D0\u9192\u7684\u5185\u5BB9")],-1),xe=n("code",null,"{Object} [config]",-1),Me=s(" \u53EF\u4FEE\u6539\u8986\u76D6\u9ED8\u8BA4\u914D\u7F6E\u9879\uFF0C\u8BF7\u53C2\u8003"),we=s("config"),Ae=t(`<li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code> \u5F53\u524D\u63D0\u9192\u7684\u5BF9\u8C61</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token string">&quot;\u6210\u529F\u63D0\u9192&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u5F39\u51FA\u6210\u529F\u63D0\u9192</p></li>`,2),Pe=n("h3",{id:"error-1",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#error-1","aria-hidden":"true"},"#"),s(" error")],-1),Oe=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"error(txt,config)")])],-1),Se=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),Ee=n("li",null,[n("code",null,"{String} [txt]"),s(" \u8981\u63D0\u9192\u7684\u5185\u5BB9")],-1),Te=n("code",null,"{Object} [config]",-1),Ne=s(" \u53EF\u4FEE\u6539\u8986\u76D6\u9ED8\u8BA4\u914D\u7F6E\u9879\uFF0C\u8BF7\u53C2\u8003"),Ce=s("config"),Ue=t(`<li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code> \u5F53\u524D\u63D0\u9192\u7684\u5BF9\u8C61</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">error</span><span class="token punctuation">(</span><span class="token string">&quot;\u9519\u8BEF\u63D0\u9192&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u5F39\u51FA\u9519\u8BEF\u63D0\u9192</p></li>`,2),We=n("h3",{id:"loading",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#loading","aria-hidden":"true"},"#"),s(" loading")],-1),Fe=n("li",null,[n("p",null,[n("strong",null,"\u5B9A\u4E49"),s("\uFF1A")]),n("p",null,[n("code",null,"loading(txt,config)")])],-1),Be=n("p",null,[n("strong",null,"\u53C2\u6570"),s("\uFF1A")],-1),Le=n("li",null,[n("code",null,"{String} [txt]"),s(" \u8981\u63D0\u9192\u7684\u5185\u5BB9")],-1),ze=n("code",null,"{Object} [config]",-1),Re=s(" \u53EF\u4FEE\u6539\u8986\u76D6\u9ED8\u8BA4\u914D\u7F6E\u9879\uFF0C\u8BF7\u53C2\u8003"),Ke=s("config"),Ve=t(`<li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1A<code>Object</code> \u5F53\u524D\u63D0\u9192\u7684\u5BF9\u8C61</p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">loading</span><span class="token punctuation">(</span><span class="token string">&quot;\u6B63\u5728\u52A0\u8F7D\u4E2D...&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u5F39\u51FA\u52A0\u8F7D\u4E2D\u72B6\u6001</p></li>`,2),Ge=t(`<h3 id="remove-1" tabindex="-1"><a class="header-anchor" href="#remove-1" aria-hidden="true">#</a> remove</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>remove(id)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{String} [id]</code> \u8981\u5220\u9664\u7684ID\uFF0C\u53EF\u4EE5\u4ECE\u4E0A\u8FF0\u8FD4\u56DE\u503C\u7684\u53D6\u5230</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">remove</span><span class="token punctuation">(</span><span class="token string">&quot;1&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u79FB\u9664\u6307\u5B9AID\u7684\u63D0\u9192</p></li></ul><h3 id="closeall" tabindex="-1"><a class="header-anchor" href="#closeall" aria-hidden="true">#</a> closeAll</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>closeAll()</code></p></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>message<span class="token punctuation">.</span><span class="token function">closeAll</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br></div></div><p>\u7528\u4E8E\u79FB\u9664\u6240\u6709\u7684\u63D0\u9192</p></li></ul><h2 id="develop" tabindex="-1"><a class="header-anchor" href="#develop" aria-hidden="true">#</a> develop</h2><p>\u6B64\u5206\u7C7B\u4E3A\u64CD\u4F5C\u5F00\u53D1\u5DE5\u5177\u7684\u516C\u5171\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.develop.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="externalmixattributechangehandle" tabindex="-1"><a class="header-anchor" href="#externalmixattributechangehandle" aria-hidden="true">#</a> externalMixAttributeChangeHandle</h3>`,7),He=t("<li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>externalMixAttributeChangeHandle(attrData,modulePackageid,attrDataInnerIndex,responseProps)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [attrData]</code> {attrKey1,attrKey2} \u8981\u53D8\u66F4\u7684\u5C5E\u6027\u5BF9\u8C61</li><li><code>{String} [modulePackageid]</code> \u5BF9\u5E94\u7684\u7EC4\u4EF6\u5305ID</li><li><code>{String} [attrDataInnerIndex]</code> \u5C5E\u6027\u5BF9\u5E94\u7684\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A-1\u662F\u7EC4\u4EF6\u5C5E\u6027\uFF0C\u5982\u679C\u4E3A\u7EC4\u4EF6\u5185\u90E8\u7684\u5BB9\u5668\u5C5E\u6027\uFF0C\u5219\u9700\u8981\u4F20\u6307\u5B9A\u5BB9\u5668\u7684idm-container-index</li><li><code>{Boolean} [responseProps]</code> \u662F\u5426\u54CD\u5E94props\u5C5E\u6027\uFF0C\u9ED8\u8BA4\u4E3Afalse\uFF0C\u5982\u679C\u4E3Atrue\uFF0C\u5C06\u4F1A\u8C03\u7528idmProps\u65B9\u6CD5\u628A\u6700\u65B0\u7684\u719F\u6089\u4F20\u9012\u7ED9\u7EC4\u4EF6\u8FDB\u884C\u54CD\u5E94</li></ul></li>",2),$e=t(`<p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token comment">//newAttrData \u4E3A  {attrKey1,attrKey2}  \u683C\u5F0F</span>
  <span class="token comment">//attrDataInnerIndex \u4E3A\u5185\u90E8\u7EC4\u4EF6</span>
  <span class="token constant">IDM</span><span class="token punctuation">.</span>develop<span class="token punctuation">.</span><span class="token function">externalMixAttributeChangeHandle</span><span class="token punctuation">(</span>newAttrData<span class="token punctuation">,</span><span class="token keyword">this</span><span class="token punctuation">.</span>moduleObject<span class="token punctuation">.</span>packageid<span class="token punctuation">,</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token boolean">false</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>\u6B64\u65B9\u6CD5\u7528\u4E8E\u5F00\u53D1\u5DE5\u5177\u5BF9\u5916\u5F00\u653E\u7684\u7EC4\u4EF6\u5C5E\u6027\u4FEE\u6539\u6539\u53D8\u5904\u7406\u51FD\u6570</p>`,3),Xe={class:"custom-container tip"},Ye=n("p",{class:"custom-container-title"},"TIP",-1),Qe=s("\u8BE6\u7EC6\u4F7F\u7528\u8BF7\u53C2\u8003\u7EC4\u4EF6\u5F00\u53D1=>\u7EC4\u4EF6\u5C5E\u6027=>"),Ze=s("\u53CD\u5411\u8BBE\u7F6E\u5C5E\u6027"),Je=t(`<h2 id="controlcenter" tabindex="-1"><a class="header-anchor" href="#controlcenter" aria-hidden="true">#</a> controlcenter</h2><p>\u6B64\u5206\u7C7B\u4E3A\u64CD\u4F5C\u7EC4\u4EF6\u7684\u63A7\u5236\u4E2D\u5FC3(\u52A8\u6001\u5C5E\u6027)\u65B9\u6CD5\u5206\u7C7B\uFF0C\u6B64\u5206\u7C7B\u9700\u8981\u8FFD\u52A0\u5206\u7C7B\u540D\uFF08IDM.controlcenter.\u65B9\u6CD5\u540D\uFF09\u8BBF\u95EE\u4E0B\u5217\u7684\u65B9\u6CD5\u3002</p><h3 id="getmoduleattrlist" tabindex="-1"><a class="header-anchor" href="#getmoduleattrlist" aria-hidden="true">#</a> getModuleAttrList</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getModuleAttrList(paramObject, success, error)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [paramObject]</code> {marketModuleId:\u7EC4\u4EF6comId,pageId:\u9875\u9762ID,packageid:\u7EC4\u4EF6\u5B9E\u4F8BID(packageid)} \u8BF7\u6C42\u53C2\u6570\u5BF9\u8C61</li><li><code>{Function} [success]</code> \u8BF7\u6C42\u6210\u529F\u56DE\u8C03\u65B9\u6CD5</li><li><code>{Function} [error]</code> \u8BF7\u6C42\u5931\u8D25\u56DE\u8C03\u65B9\u6CD5</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>controlcenter<span class="token punctuation">.</span><span class="token function">getModuleAttrList</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
    <span class="token literal-property property">marketModuleId</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>moduleObject<span class="token punctuation">.</span>comId<span class="token punctuation">,</span>
    <span class="token literal-property property">pageId</span><span class="token operator">:</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast <span class="token operator">?</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span>pageModule<span class="token punctuation">.</span>id <span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>
    <span class="token literal-property property">packageid</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>moduleObject<span class="token punctuation">.</span>packageid
  <span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
  
  <span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">err</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
    
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div><p>\u6B64\u65B9\u6CD5\u7528\u4E8E\u7EC4\u4EF6\u5185\u83B7\u53D6\u63A7\u5236\u4E2D\u5FC3\u8BBE\u7F6E\u7684\u7EC4\u4EF6\u52A8\u6001\u5C5E\u6027</p></li></ul><h3 id="getmoduleattrinstance" tabindex="-1"><a class="header-anchor" href="#getmoduleattrinstance" aria-hidden="true">#</a> getModuleAttrInstance</h3><ul><li><p><strong>\u5B9A\u4E49</strong>\uFF1A</p><p><code>getModuleAttrInstance(paramObject)</code></p></li><li><p><strong>\u53C2\u6570</strong>\uFF1A</p><ul><li><code>{Object} [paramObject]</code> {marketModuleId:\u7EC4\u4EF6comId,pageId:\u9875\u9762ID,packageid:\u7EC4\u4EF6\u5B9E\u4F8BID(packageid)} \u8BF7\u6C42\u53C2\u6570\u5BF9\u8C61</li></ul></li><li><p><strong>\u7528\u6CD5</strong>\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code><span class="token constant">IDM</span><span class="token punctuation">.</span>controlcenter<span class="token punctuation">.</span><span class="token function">getModuleAttrInstance</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
    <span class="token literal-property property">marketModuleId</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>moduleObject<span class="token punctuation">.</span>comId<span class="token punctuation">,</span>
    <span class="token literal-property property">pageId</span><span class="token operator">:</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast <span class="token operator">?</span> <span class="token constant">IDM</span><span class="token punctuation">.</span>broadcast<span class="token punctuation">.</span>pageModule<span class="token punctuation">.</span>id <span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>
    <span class="token literal-property property">packageid</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>moduleObject<span class="token punctuation">.</span>packageid
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">res</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
      <span class="token comment">//\u6210\u529F\u7ED3\u679C</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">catch</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token parameter">err</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
      <span class="token comment">//\u5931\u8D25\u7ED3\u679C</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>
  </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div></li><li><p><strong>\u8FD4\u56DE\u503C</strong>\uFF1Ahttp axios</p><p>\u6B64\u65B9\u6CD5\u7528\u4E8E\u7EC4\u4EF6\u5185\u83B7\u53D6\u63A7\u5236\u4E2D\u5FC3\u8BBE\u7F6E\u7684\u7EC4\u4EF6\u52A8\u6001http axios \u5B9E\u4F8B</p></li></ul>`,6);function no(so,ao){const p=c("RouterLink"),o=c("ExternalLinkIcon");return l(),u(i,null,[d,n("p",null,[b,m,a(p,{to:"/setting/config.html"},{default:e(()=>[g]),_:1}),h,_,v,f,q]),y,n("ul",null,[j,n("li",null,[D,n("p",null,[n("a",I,[x,a(o)])])])]),M,n("ul",null,[w,n("li",null,[A,n("p",null,[n("a",P,[O,a(o)])])])]),S,n("ul",null,[E,n("li",null,[T,n("p",null,[n("a",N,[C,a(o)])])])]),U,n("ul",null,[W,n("li",null,[F,n("p",null,[n("a",B,[L,a(o)])])])]),z,n("ul",null,[R,n("li",null,[K,n("p",null,[n("a",V,[G,a(o)])])])]),H,n("ul",null,[$,n("li",null,[X,n("p",null,[Y,n("a",Q,[Z,a(o)])])])]),J,n("ul",null,[nn,n("li",null,[sn,n("ul",null,[n("li",null,[n("p",null,[an,tn,pn,a(p,{to:"/setting/config.html#assetsdir"},{default:e(()=>[en]),_:1})])]),n("li",null,[n("p",null,[on,cn,ln,a(p,{to:"/setting/config.html#htmldir"},{default:e(()=>[un]),_:1})])]),n("li",null,[n("p",null,[rn,kn,dn,a(p,{to:"/setting/config.html#moduledir"},{default:e(()=>[bn]),_:1})])]),n("li",null,[n("p",null,[mn,gn,hn,_n,vn,fn,qn,a(p,{to:"/setting/config.html#default"},{default:e(()=>[yn]),_:1})])])]),n("div",jn,[Dn,n("ol",null,[In,n("li",null,[n("p",null,[xn,a(p,{to:"/setting/config.html#useprojectnosetting"},{default:e(()=>[Mn]),_:1}),wn,a(p,{to:"/coreapi/api.html#getmoduleabsolutedir"},{default:e(()=>[An]),_:1}),Pn])])])])])]),On,n("ul",null,[Sn,n("li",null,[En,n("p",null,[Tn,a(p,{to:"/setting/config.html#moduleabsolutedir"},{default:e(()=>[Nn]),_:1})])])]),Cn,n("ul",null,[Un,n("li",null,[Wn,n("ul",null,[Fn,n("li",null,[Bn,Ln,a(p,{to:"/moduledevelop/attributes.html"},{default:e(()=>[zn]),_:1})])])]),Rn,n("li",null,[Kn,n("div",Vn,[Gn,n("p",null,[Hn,a(p,{to:"/moduledevelop/attributes.html"},{default:e(()=>[$n]),_:1})])])])]),Xn,n("ul",null,[Yn,n("li",null,[Qn,n("div",Zn,[Jn,n("p",null,[ns,n("a",ss,[as,a(o)])])])])]),ts,n("ul",null,[ps,n("li",null,[es,n("div",os,[cs,n("p",null,[ls,n("a",us,[is,a(o)])])])])]),rs,n("ul",null,[ks,n("li",null,[ds,n("div",bs,[ms,n("p",null,[gs,a(p,{to:"/coreapi/api.html#getwebpath"},{default:e(()=>[hs]),_:1}),_s,a(p,{to:"/coreapi/api.html#geturlroot"},{default:e(()=>[vs]),_:1}),fs,qs,ys])])])]),js,n("ul",null,[Ds,n("li",null,[Is,n("ul",null,[n("li",null,[xs,Ms,a(p,{to:"/coreapi/api.html#getwebpath"},{default:e(()=>[ws]),_:1}),As]),Ps,Os,Ss])]),n("li",null,[Es,n("p",null,[Ts,n("a",Ns,[Cs,a(o)]),Us]),n("div",Ws,[Fs,Bs,n("p",null,[Ls,n("a",zs,[Rs,a(o)])]),n("p",null,[Ks,n("a",Vs,[Gs,a(o)])]),n("p",null,[Hs,n("a",$s,[Xs,a(o)])])])])]),Ys,n("ul",null,[Qs,n("li",null,[Zs,n("ul",null,[n("li",null,[Js,na,a(p,{to:"/coreapi/api.html#getwebpath"},{default:e(()=>[sa]),_:1}),aa]),ta,pa,ea])]),n("li",null,[oa,n("p",null,[ca,n("a",la,[ua,a(o)]),ia]),n("div",ra,[ka,da,n("p",null,[ba,n("a",ma,[ga,a(o)])]),n("p",null,[ha,n("a",_a,[va,a(o)])]),n("p",null,[fa,n("a",qa,[ya,a(o)])])])])]),ja,n("ul",null,[Da,Ia,n("li",null,[xa,n("p",null,[Ma,n("a",wa,[Aa,a(o)]),Pa]),n("div",Oa,[Sa,Ea,n("p",null,[Ta,n("a",Na,[Ca,a(o)])]),n("p",null,[Ua,n("a",Wa,[Fa,a(o)])]),n("p",null,[Ba,n("a",La,[za,a(o)])])])])]),Ra,n("ul",null,[Ka,n("li",null,[Va,n("ul",null,[n("li",null,[Ga,Ha,a(p,{to:"/coreapi/api.html#getwebpath"},{default:e(()=>[$a]),_:1}),Xa]),Ya,Qa,Za,Ja])]),n("li",null,[nt,n("p",null,[st,n("a",at,[tt,a(o)]),pt,et]),n("div",ot,[ct,lt,n("p",null,[ut,n("a",it,[rt,a(o)])]),n("p",null,[kt,n("a",dt,[bt,a(o)])]),n("p",null,[mt,n("a",gt,[ht,a(o)])])])])]),_t,n("ul",null,[vt,n("li",null,[ft,n("div",qt,[yt,n("p",null,[jt,a(p,{to:"/moduledevelop/communication.html"},{default:e(()=>[Dt]),_:1}),It,a(p,{to:"/moduledevelop/builtin.html"},{default:e(()=>[xt]),_:1}),Mt,a(p,{to:"/moduledevelop/builtin.html#receivebroadcastmessage"},{default:e(()=>[wt]),_:1})]),n("p",null,[At,a(p,{to:"/moduledevelop/communication.html#%E5%86%85%E7%BD%AE%E9%80%9A%E4%BF%A1%E5%8D%8F%E8%AE%AE"},{default:e(()=>[Pt]),_:1})])])])]),Ot,n("ul",null,[St,n("li",null,[Et,n("div",Tt,[Nt,n("p",null,[Ct,a(p,{to:"/moduledevelop/builtin.html"},{default:e(()=>[Ut]),_:1}),Wt,a(p,{to:"/moduledevelop/builtin.html#getcontextvalue"},{default:e(()=>[Ft]),_:1})])])])]),Bt,n("ul",null,[Lt,n("li",null,[zt,n("p",null,[Rt,a(p,{to:"/coreapi/api.html#opencontrolsetpanel"},{default:e(()=>[Kt]),_:1}),Vt]),Gt])]),Ht,n("ul",null,[$t,Xt,n("li",null,[Yt,n("p",null,[Qt,a(p,{to:"/coreapi/api.html#express"},{default:e(()=>[Zt]),_:1})])])]),Jt,n("ul",null,[np,n("li",null,[sp,n("p",null,[ap,a(p,{to:"/guide/developtool.html#%E5%BA%94%E7%94%A8%E4%BF%A1%E6%81%AF"},{default:e(()=>[tp]),_:1})])])]),pp,n("ul",null,[ep,op,n("li",null,[cp,n("p",null,[lp,a(p,{to:"/guide/developtool.html#%E5%BA%94%E7%94%A8%E4%BF%A1%E6%81%AF"},{default:e(()=>[up]),_:1})])])]),ip,rp,kp,n("ul",null,[dp,n("li",null,[bp,n("p",null,[mp,a(p,{to:"/guide/developtool.html#%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF"},{default:e(()=>[gp]),_:1})])])]),hp,n("ul",null,[_p,vp,n("li",null,[fp,n("p",null,[qp,a(p,{to:"/guide/developtool.html#%E7%94%A8%E6%88%B7%E4%BF%A1%E6%81%AF"},{default:e(()=>[yp]),_:1})])])]),jp,Dp,Ip,n("ul",null,[xp,n("li",null,[Mp,n("p",null,[wp,a(p,{to:"/guide/developtool.html#%E5%BA%94%E7%94%A8%E4%B8%BB%E9%A2%98"},{default:e(()=>[Ap]),_:1})])])]),Pp,n("ul",null,[Op,Sp,n("li",null,[Ep,n("p",null,[Tp,a(p,{to:"/guide/developtool.html#%E5%BA%94%E7%94%A8%E4%B8%BB%E9%A2%98"},{default:e(()=>[Np]),_:1})])])]),Cp,Up,Wp,n("ul",null,[Fp,n("li",null,[Bp,n("ul",null,[Lp,zp,n("li",null,[Rp,Kp,Vp,Gp,a(p,{to:"/coreapi/api.html#getwebpath"},{default:e(()=>[Hp]),_:1})]),$p,Xp]),Yp]),n("li",null,[Qp,n("p",null,[Zp,a(p,{to:"/guide/developtool.html#%E6%B0%B4%E5%8D%B0%E8%AE%BE%E7%BD%AE"},{default:e(()=>[Jp]),_:1})])])]),ne,n("ul",null,[se,ae,n("li",null,[te,n("p",null,[pe,a(p,{to:"/guide/developtool.html#%E6%B0%B4%E5%8D%B0%E8%AE%BE%E7%BD%AE"},{default:e(()=>[ee]),_:1})])])]),oe,n("ul",null,[ce,n("li",null,[le,n("ul",null,[ue,n("li",null,[ie,re,a(p,{to:"/coreapi/api.html#config"},{default:e(()=>[ke]),_:1})])])]),de]),be,n("ul",null,[me,n("li",null,[ge,n("ul",null,[he,n("li",null,[_e,ve,a(p,{to:"/coreapi/api.html#config"},{default:e(()=>[fe]),_:1})])])]),qe]),ye,n("ul",null,[je,n("li",null,[De,n("ul",null,[Ie,n("li",null,[xe,Me,a(p,{to:"/coreapi/api.html#config"},{default:e(()=>[we]),_:1})])])]),Ae]),Pe,n("ul",null,[Oe,n("li",null,[Se,n("ul",null,[Ee,n("li",null,[Te,Ne,a(p,{to:"/coreapi/api.html#config"},{default:e(()=>[Ce]),_:1})])])]),Ue]),We,n("ul",null,[Fe,n("li",null,[Be,n("ul",null,[Le,n("li",null,[ze,Re,a(p,{to:"/coreapi/api.html#config"},{default:e(()=>[Ke]),_:1})])])]),Ve]),Ge,n("ul",null,[He,n("li",null,[$e,n("div",Xe,[Ye,n("p",null,[Qe,a(p,{to:"/moduledevelop/attributes.html#%E5%8F%8D%E5%90%91%E8%AE%BE%E7%BD%AE%E5%B1%9E%E6%80%A7"},{default:e(()=>[Ze]),_:1})])])])]),Je],64)}var eo=r(k,[["render",no]]);export{eo as default};
  