Skip to content

Commit

Permalink
Site updated: 2019-05-24 22:27:05
Browse files Browse the repository at this point in the history
  • Loading branch information
xxplus committed May 24, 2019
1 parent 08fef5f commit d860d5b
Show file tree
Hide file tree
Showing 18 changed files with 225 additions and 246 deletions.
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/9 面向对象编程/" 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 面向对象编程
ECMA5 this指针

</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/6 Array/" 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/9 面向对象编程/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 面向对象编程</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
4 changes: 2 additions & 2 deletions 2019/05/22/5 标准库/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ <h1 id="6-控制对象的状态"><a href="#6-控制对象的状态" class="heade
</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/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
25 changes: 12 additions & 13 deletions 2019/05/22/6 Array/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 静态方法1.1 判断是否为数组 使用Array的静态方法 1Array.isArray( array ) 使用原型toString方法,返回的字符串第二个词表示构造函数 1Object.prototype.toString.call( array ) // [object array]">
<meta name="description" content="1 静态方法1.1 判断是否为数组 使用Array的静态方法 1Array.isArray( array ) 使用原型toString方法,返回的字符串第二个词表示构造函数">
<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/6 Array/index.html">
<meta property="og:site_name" content="chochi&#39;s workshop">
<meta property="og:description" content="1 静态方法1.1 判断是否为数组 使用Array的静态方法 1Array.isArray( array ) 使用原型toString方法,返回的字符串第二个词表示构造函数 1Object.prototype.toString.call( array ) // [object array]">
<meta property="og:description" content="1 静态方法1.1 判断是否为数组 使用Array的静态方法 1Array.isArray( array ) 使用原型toString方法,返回的字符串第二个词表示构造函数">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2019-05-22T14:53:38.911Z">
<meta property="og:updated_time" content="2019-05-24T14:26:35.794Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ECMA5 数组">
<meta name="twitter:description" content="1 静态方法1.1 判断是否为数组 使用Array的静态方法 1Array.isArray( array ) 使用原型toString方法,返回的字符串第二个词表示构造函数 1Object.prototype.toString.call( array ) // [object array]">
<meta name="twitter:description" content="1 静态方法1.1 判断是否为数组 使用Array的静态方法 1Array.isArray( array ) 使用原型toString方法,返回的字符串第二个词表示构造函数">

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

Expand Down Expand Up @@ -164,14 +164,13 @@ <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><h3 id="1-1-判断是否为数组"><a href="#1-1-判断是否为数组" class="headerlink" title="1.1 判断是否为数组"></a>1.1 判断是否为数组</h3><ol>
<li><p>使用Array的静态方法</p>
<li>使用Array的静态方法</li>
</ol>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Array</span>.isArray( array )</span><br></pre></td></tr></table></figure>
</li>
<li><p>使用原型toString方法,返回的字符串第二个词表示构造函数</p>
</li>
<ol start="2">
<li>使用原型toString方法,返回的字符串第二个词表示构造函数 <a id="more"></a></li>
</ol>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Object</span>.prototype.toString.call( array ) <span class="comment">// [object array]</span></span><br></pre></td></tr></table></figure>
<a id="more"></a>
<ol start="3">
<li>instanceof (不太靠谱)</li>
</ol>
Expand Down Expand Up @@ -250,18 +249,18 @@ <h1 id="2-实例方法"><a href="#2-实例方法" class="headerlink" title="2

<nav id="article-nav">

<a href="/2019/05/22/继承/" 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>


<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/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/7 包装对象 wrapper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,18 +256,18 @@ <h3 id="3-4-字符串的实例方法"><a href="#3-4-字符串的实例方法" cl

<nav id="article-nav">

<a href="/2019/05/22/5 标准库/" 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 JavaScript Classes/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA6 类</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
8 changes: 4 additions & 4 deletions 2019/05/22/9 JavaScript Classes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,18 @@ <h1 id="Questions"><a href="#Questions" class="headerlink" title="Questions"></a

<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/9 面向对象编程/" 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/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/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/4 函数/" 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/3 对象/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 对象</div>
<a href="/2019/05/22/9 JavaScript Classes/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA6 类</div>
<i class="icon-circle-right"></i>
</a>

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

<nav id="article-nav">

<a href="/2019/05/22/关于 this 指针/" 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 this指针
ECMA5 数组

</div>
</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 @@ -218,18 +218,18 @@ <h1 id="1-概念"><a href="#1-概念" class="headerlink" title="1 概念"></a>1

<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/4 函数/" 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/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/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
34 changes: 13 additions & 21 deletions 2019/05/22/继承/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="2 继承ECMAScript 只支持实现继承,不支持接口继承。 继承方法类型: 原型链继承 借用构造函数 组合继承 原型式继承 寄生式继承 寄生组合式继承">
<meta name="description" content="2 继承ECMAScript 只支持实现继承,不支持接口继承。 继承方法类型: 原型链继承 借用构造函数 组合继承 原型式继承 寄生式继承 寄生组合式继承">
<meta name="keywords" content="ECMA5">
<meta property="og:type" content="article">
<meta property="og:title" content="ECMA5 继承">
<meta property="og:url" content="http://yoursite.com/2019/05/22/继承/index.html">
<meta property="og:site_name" content="chochi&#39;s workshop">
<meta property="og:description" content="2 继承ECMAScript 只支持实现继承,不支持接口继承。 继承方法类型: 原型链继承 借用构造函数 组合继承 原型式继承 寄生式继承 寄生组合式继承">
<meta property="og:description" content="2 继承ECMAScript 只支持实现继承,不支持接口继承。 继承方法类型: 原型链继承 借用构造函数 组合继承 原型式继承 寄生式继承 寄生组合式继承">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2019-05-24T14:23:45.552Z">
<meta property="og:updated_time" content="2019-05-24T14:25:25.675Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ECMA5 继承">
<meta name="twitter:description" content="2 继承ECMAScript 只支持实现继承,不支持接口继承。 继承方法类型: 原型链继承 借用构造函数 组合继承 原型式继承 寄生式继承 寄生组合式继承">
<meta name="twitter:description" content="2 继承ECMAScript 只支持实现继承,不支持接口继承。 继承方法类型: 原型链继承 借用构造函数 组合继承 原型式继承 寄生式继承 寄生组合式继承">

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

Expand Down Expand Up @@ -165,24 +165,16 @@ <h1 class="article-title" itemprop="name">

<h2 id="2-继承"><a href="#2-继承" class="headerlink" title="2 继承"></a>2 继承</h2><p>ECMAScript 只支持实现继承,不支持接口继承。</p>
<ul>
<li><p>继承方法类型:</p>
<ul>
<li><p>原型链继承</p>
</li>
<li><p>借用构造函数</p>
</li>
<li><p>组合继承</p>
</li>
<li><p>原型式继承</p>
</li>
<li><p>寄生式继承</p>
</li>
<li><p>寄生组合式继承</p>
</li>
<li>继承方法类型:<ul>
<li>原型链继承</li>
<li>借用构造函数</li>
<li>组合继承</li>
<li>原型式继承</li>
<li>寄生式继承</li>
<li>寄生组合式继承 <a id="more"></a></li>
</ul>
</li>
</ul>
<a id="more"></a>
<h3 id="2-1-原型链继承"><a href="#2-1-原型链继承" class="headerlink" title="2.1 原型链继承"></a>2.1 原型链继承</h3><ul>
<li>基本思想:利用原型让一个引用类型继承另一个引用类型的属性和方法,实现的本质是重写原型对象,代之一个新类型的<strong>实例</strong><ul>
<li>原型对象可以算是是一个‘实例’,有用constructor指针,指向其构造函数</li>
Expand Down Expand Up @@ -283,8 +275,8 @@ <h4 id="2-5-寄生组合继承"><a href="#2-5-寄生组合继承" class="headerl
</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/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
Loading

0 comments on commit d860d5b

Please sign in to comment.