Skip to content

Commit

Permalink
Site updated: 2019-06-01 12:27:46
Browse files Browse the repository at this point in the history
  • Loading branch information
xxplus committed Jun 1, 2019
1 parent c7347a0 commit 9bafeb3
Show file tree
Hide file tree
Showing 23 changed files with 168 additions and 168 deletions.
4 changes: 2 additions & 2 deletions 2019/05/22/2 字符串/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ <h1 id="Base64-转码"><a href="#Base64-转码" class="headerlink" title="Base64

<nav id="article-nav">

<a href="/2019/05/22/Call与Apply/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/关于 this 指针/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 CALL APPLY 模拟
ECMA5 this指针

</div>
</a>
Expand Down
4 changes: 2 additions & 2 deletions 2019/05/22/3 对象/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ <h1 id="遍历总结"><a href="#遍历总结" class="headerlink" title="遍历

<nav id="article-nav">

<a href="/2019/05/22/6 Array/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/7 包装对象 wrapper/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 数组
ECMA5 包装对象

</div>
</a>
Expand Down
8 changes: 4 additions & 4 deletions 2019/05/22/4 函数/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,18 +265,18 @@ <h1 id="6-立即调用的函数表达式-IIFE"><a href="#6-立即调用的函数

<nav id="article-nav">

<a href="/2019/05/22/7 包装对象 wrapper/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/6 Array/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 包装对象
ECMA5 数组

</div>
</a>


<a href="/2019/05/22/关于 this 指针/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 this指针</div>
<a href="/2019/05/22/9 面向对象编程/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 面向对象编程</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
8 changes: 4 additions & 4 deletions 2019/05/22/5 标准库/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,18 @@ <h1 id="6-控制对象的状态"><a href="#6-控制对象的状态" class="heade

<nav id="article-nav">

<a href="/2019/05/22/9 面向对象编程/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/Call与Apply/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 面向对象编程
ECMA5 CALL APPLY 模拟

</div>
</a>


<a href="/2019/05/22/6 Array/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 数组</div>
<a href="/2019/05/22/7 包装对象 wrapper/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 包装对象</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
8 changes: 4 additions & 4 deletions 2019/05/22/6 Array/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,18 +249,18 @@ <h1 id="2-实例方法"><a href="#2-实例方法" class="headerlink" title="2

<nav id="article-nav">

<a href="/2019/05/22/5 标准库/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/继承/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 标准库
ECMA5 继承

</div>
</a>


<a href="/2019/05/22/3 对象/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 对象</div>
<a href="/2019/05/22/4 函数/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 函数</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
24 changes: 12 additions & 12 deletions 2019/05/22/7 包装对象 wrapper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
<link rel="dns-prefetch" href="http://yoursite.com">
<title>ECMA5 包装对象 | chochi&#39;s workshop</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="1 定义 数值、字符串、布尔值这三种原型类型的值,在一听条件下也会自动转化为对象,也就是原始类型的包装对象。 Number String Boolean 包装对象的目的,是得对象模型覆盖js所优质,正门语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。 原始类型的值会自动当做包装对象调用,即调用包装对象的属性和方法。JS引擎糊自动将原始类型的值转换为包装对象实例,并在使用后立">
<meta name="description" content="1 定义 数值、字符串、布尔值这三种原型类型的值,在一定条件下也会自动转化为对象,也就是原始类型的包装对象。 Number String Boolean 包装对象的目的,使得语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。 原始类型的值会自动当做包装对象调用,即调用包装对象的属性和方法。JS引擎糊自动将原始类型的值转换为包装对象实例,并在使用后立即销毁。 自动转换生成的包装">
<meta name="keywords" content="-JS">
<meta property="og:type" content="article">
<meta property="og:title" content="ECMA5 包装对象">
<meta property="og:url" content="http://yoursite.com/2019/05/22/7 包装对象 wrapper/index.html">
<meta property="og:site_name" content="chochi&#39;s workshop">
<meta property="og:description" content="1 定义 数值、字符串、布尔值这三种原型类型的值,在一听条件下也会自动转化为对象,也就是原始类型的包装对象。 Number String Boolean 包装对象的目的,是得对象模型覆盖js所优质,正门语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。 原始类型的值会自动当做包装对象调用,即调用包装对象的属性和方法。JS引擎糊自动将原始类型的值转换为包装对象实例,并在使用后立">
<meta property="og:description" content="1 定义 数值、字符串、布尔值这三种原型类型的值,在一定条件下也会自动转化为对象,也就是原始类型的包装对象。 Number String Boolean 包装对象的目的,使得语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。 原始类型的值会自动当做包装对象调用,即调用包装对象的属性和方法。JS引擎糊自动将原始类型的值转换为包装对象实例,并在使用后立即销毁。 自动转换生成的包装">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2019-05-22T14:49:12.973Z">
<meta property="og:updated_time" content="2019-06-01T04:27:10.071Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ECMA5 包装对象">
<meta name="twitter:description" content="1 定义 数值、字符串、布尔值这三种原型类型的值,在一听条件下也会自动转化为对象,也就是原始类型的包装对象。 Number String Boolean 包装对象的目的,是得对象模型覆盖js所优质,正门语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。 原始类型的值会自动当做包装对象调用,即调用包装对象的属性和方法。JS引擎糊自动将原始类型的值转换为包装对象实例,并在使用后立">
<meta name="twitter:description" content="1 定义 数值、字符串、布尔值这三种原型类型的值,在一定条件下也会自动转化为对象,也就是原始类型的包装对象。 Number String Boolean 包装对象的目的,使得语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。 原始类型的值会自动当做包装对象调用,即调用包装对象的属性和方法。JS引擎糊自动将原始类型的值转换为包装对象实例,并在使用后立即销毁。 自动转换生成的包装">

<link rel="alternative" href="/atom.xml" title="chochi&#39;s workshop" type="application/atom+xml">

Expand Down Expand Up @@ -164,9 +164,9 @@ <h1 class="article-title" itemprop="name">
<div class="article-entry" itemprop="articleBody">

<h1 id="1-定义"><a href="#1-定义" class="headerlink" title="1 定义"></a>1 定义</h1><ul>
<li>数值、字符串、布尔值这三种原型类型的值,在一听条件下也会自动转化为对象,也就是原始类型的包装对象。</li>
<li>数值、字符串、布尔值这三种原型类型的值,在一定条件下也会自动转化为对象,也就是原始类型的包装对象。</li>
<li>Number String Boolean</li>
<li>包装对象的目的,是得对象模型覆盖js所优质,正门语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。</li>
<li>包装对象的目的,使得语言都有一个通用的数据模型,其次是得原始类型的值也有可以调动自己的方法。</li>
<li>原始类型的值会自动当做包装对象调用,即调用包装对象的属性和方法。<strong>JS引擎糊自动将原始类型的值转换为包装对象实例,并在使用后立即销毁。</strong></li>
<li>自动转换生成的包装对象是只读的,无法修改。</li>
</ul>
Expand All @@ -182,7 +182,7 @@ <h3 id="3-3-实例方法"><a href="#3-3-实例方法" class="headerlink" title="
<li><p>RegExp.prototype.test()</p>
<ul>
<li>从 lastIndex 位置向后匹配,找到当前模式能匹配的参数字符串则返回 true</li>
<li>带有g修饰符,每次test()都从上一次结束的位置开始向后匹配<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">var regex = /r/g;</span><br><span class="line">var str = &apos;_x_x&apos;;</span><br><span class="line">regex.lastIndex ; // 0</span><br><span class="line">regex.test(s); //true</span><br><span class="line">regex.lastIndex; // 2 _</span><br><span class="line">regex.lastIdex = 4; // 可指定搜索位置,只对同一个正则表达式有效</span><br><span class="line">regex.test(s); //false</span><br></pre></td></tr></table></figure>
<li>带有g修饰符,每次test()都从上一次结束的位置开始向后匹配<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> regex = <span class="regexp">/x/g</span>;</span><br><span class="line"><span class="keyword">var</span> str = <span class="string">'_x_x__x_'</span>;</span><br><span class="line"><span class="built_in">console</span>.log(regex.lastIndex, regex.test(str));<span class="comment">// 0 true</span></span><br><span class="line"><span class="built_in">console</span>.log(regex.lastIndex, regex.test(str));<span class="comment">// 2 true</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// set the value of lastIndex directly</span></span><br><span class="line">regex.lastIndex = str.length - <span class="number">1</span>;</span><br><span class="line"></span><br><span class="line"><span class="built_in">console</span>.log(regex.lastIndex, regex.test(str));<span class="comment">// 7 false</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> num = <span class="string">'1234x'</span>;</span><br><span class="line"><span class="built_in">console</span>.log(regex.lastIndex, regex.test(num));<span class="comment">// 0 true</span></span><br><span class="line"></span><br><span class="line"><span class="built_in">console</span>.log(regex.lastIndex);<span class="comment">// 5</span></span><br></pre></td></tr></table></figure>
</li>
</ul>
</li>
Expand All @@ -193,7 +193,7 @@ <h3 id="3-3-实例方法"><a href="#3-3-实例方法" class="headerlink" title="
</ul>
</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> r = <span class="regexp">/a(b+)a/</span>;</span><br><span class="line"><span class="keyword">var</span> match = r.exec(<span class="string">'_abbbbba_aba_'</span>);</span><br><span class="line"></span><br><span class="line"><span class="built_in">console</span>.log(match);</span><br><span class="line"><span class="comment">/* </span></span><br><span class="line"><span class="comment"> Array(2) ["abbbbba", "bbbbb"]</span></span><br><span class="line"><span class="comment"> index:1 整个匹配模式成功的开始位置</span></span><br><span class="line"><span class="comment"> input:"_abbbbba_aba_" 整个字符串</span></span><br><span class="line"><span class="comment"> length:2 第二个成员是组匹配结果</span></span><br><span class="line"><span class="comment">*/</span></span><br></pre></td></tr></table></figure>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> r = <span class="regexp">/a(b+)a/</span>;</span><br><span class="line"><span class="keyword">var</span> match = r.exec(<span class="string">'_abbbbba_aba_'</span>);</span><br><span class="line"></span><br><span class="line"><span class="built_in">console</span>.log(match);</span><br><span class="line"><span class="comment">/* </span></span><br><span class="line"><span class="comment"> Array(2) ["abbbbba", "bbbbb"]</span></span><br><span class="line"><span class="comment"> index:1 整个匹配模式成功的开始位置</span></span><br><span class="line"><span class="comment"> input:"_abbbbba_aba_" 整个字符串</span></span><br><span class="line"><span class="comment"> length:2 第二个成员是捕获组匹配结果</span></span><br><span class="line"><span class="comment">*/</span></span><br></pre></td></tr></table></figure>
<h3 id="3-4-字符串的实例方法"><a href="#3-4-字符串的实例方法" class="headerlink" title="3.4 字符串的实例方法"></a>3.4 字符串的实例方法</h3><ul>
<li><p>match()</p>
<ul>
Expand Down Expand Up @@ -256,18 +256,18 @@ <h3 id="3-4-字符串的实例方法"><a href="#3-4-字符串的实例方法" cl

<nav id="article-nav">

<a href="/2019/05/22/继承/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/5 标准库/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 继承
ECMA5 标准库

</div>
</a>


<a href="/2019/05/22/4 函数/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 函数</div>
<a href="/2019/05/22/3 对象/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 对象</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
4 changes: 2 additions & 2 deletions 2019/05/22/9 JavaScript Classes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ <h1 id="Questions"><a href="#Questions" class="headerlink" title="Questions"></a
</a>


<a href="/2019/05/22/Call与Apply/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 CALL APPLY 模拟</div>
<a href="/2019/05/22/关于 this 指针/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 this指针</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
8 changes: 4 additions & 4 deletions 2019/05/22/9 面向对象编程/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,18 @@ <h1 id="跳-对象的相关方法"><a href="#跳-对象的相关方法" class="h

<nav id="article-nav">

<a href="/2019/05/22/关于 this 指针/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/4 函数/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 this指针
ECMA5 函数

</div>
</a>


<a href="/2019/05/22/5 标准库/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 标准库</div>
<a href="/2019/05/22/Call与Apply/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 CALL APPLY 模拟</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
8 changes: 4 additions & 4 deletions 2019/05/22/Call与Apply/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,18 +234,18 @@ <h1 id="参考文献"><a href="#参考文献" class="headerlink" title="参考

<nav id="article-nav">

<a href="/2019/05/22/9 JavaScript Classes/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/9 面向对象编程/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA6 类
ECMA5 面向对象编程

</div>
</a>


<a href="/2019/05/22/2 字符串/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 字符串</div>
<a href="/2019/05/22/5 标准库/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 标准库</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
8 changes: 4 additions & 4 deletions 2019/05/22/关于 this 指针/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,18 @@ <h2 id="2-加一个关于箭头函数的this指针"><a href="#2-加一个关于

<nav id="article-nav">

<a href="/2019/05/22/4 函数/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/9 JavaScript Classes/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

ECMA5 函数
ECMA6 类

</div>
</a>


<a href="/2019/05/22/9 面向对象编程/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 面向对象编程</div>
<a href="/2019/05/22/2 字符串/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 字符串</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
4 changes: 2 additions & 2 deletions 2019/05/22/继承/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ <h4 id="2-5-寄生组合继承"><a href="#2-5-寄生组合继承" class="headerl
</a>


<a href="/2019/05/22/7 包装对象 wrapper/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 包装对象</div>
<a href="/2019/05/22/6 Array/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 数组</div>
<i class="icon-circle-right"></i>
</a>

Expand Down
Loading

0 comments on commit 9bafeb3

Please sign in to comment.