Skip to content

Commit

Permalink
Site updated: 2019-06-01 14:10:37
Browse files Browse the repository at this point in the history
  • Loading branch information
xxplus committed Jun 1, 2019
1 parent 1901662 commit 87eb562
Show file tree
Hide file tree
Showing 22 changed files with 153 additions and 153 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/9 面向对象编程/" id="article-nav-newer" class="article-nav-link-wrap">
<i class="icon-circle-left"></i>
<div class="article-nav-title">

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

</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/5 标准库/" 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 标准库
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/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>


<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/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
22 changes: 11 additions & 11 deletions 2019/05/22/5 标准库/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 判断某个变量是否为函数123function isObject(value)&amp;#123; return value === Object(value); &amp;#125; 2 对象的键名">
<meta name="description" content="1 判断某个变量是否为对象123function isObject(value)&amp;#123; return value === Object(value); &amp;#125; 2 对象的键名">
<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/5 标准库/index.html">
<meta property="og:site_name" content="chochi&#39;s workshop">
<meta property="og:description" content="1 判断某个变量是否为函数123function isObject(value)&amp;#123; return value === Object(value); &amp;#125; 2 对象的键名">
<meta property="og:description" content="1 判断某个变量是否为对象123function isObject(value)&amp;#123; return value === Object(value); &amp;#125; 2 对象的键名">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2019-05-22T14:53:23.277Z">
<meta property="og:updated_time" content="2019-06-01T06:10:11.362Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ECMA5 标准库">
<meta name="twitter:description" content="1 判断某个变量是否为函数123function isObject(value)&amp;#123; return value === Object(value); &amp;#125; 2 对象的键名">
<meta name="twitter:description" content="1 判断某个变量是否为对象123function isObject(value)&amp;#123; return value === Object(value); &amp;#125; 2 对象的键名">

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

Expand Down Expand Up @@ -163,12 +163,12 @@ <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><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></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">isObject</span>(<span class="params">value</span>)</span>&#123;</span><br><span class="line"> <span class="keyword">return</span> value === <span class="built_in">Object</span>(value);</span><br><span class="line"> &#125;</span><br></pre></td></tr></table></figure>
<h1 id="1-判断某个变量是否为对象"><a href="#1-判断某个变量是否为对象" class="headerlink" title="1 判断某个变量是否为对象"></a>1 判断某个变量是否为对象</h1><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></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">isObject</span>(<span class="params">value</span>)</span>&#123;</span><br><span class="line"> <span class="keyword">return</span> value === <span class="built_in">Object</span>(value);</span><br><span class="line"> &#125;</span><br></pre></td></tr></table></figure>
<h1 id="2-对象的键名"><a href="#2-对象的键名" class="headerlink" title="2 对象的键名"></a>2 对象的键名</h1><a id="more"></a>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">Object</span>.keys <span class="comment">// 返回对象本身(不包括继承)的可枚举属性</span></span><br><span class="line"><span class="built_in">Object</span>.getOwnPropertyNames <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></pre></td><td class="code"><pre><span class="line"><span class="built_in">Object</span>.keys(instance) <span class="comment">// 返回对象本身(不包括继承)的可枚举属性</span></span><br><span class="line"><span class="built_in">Object</span>.getOwnPropertyNames(instance) <span class="comment">// 返回对象本身的所有属性(不包括继承)</span></span><br></pre></td></tr></table></figure>
<h1 id="3-判断数据类型"><a href="#3-判断数据类型" class="headerlink" title="3 判断数据类型"></a>3 判断数据类型</h1><ul>
<li>toString 返回对象的类型字符串,因此可以用来判断一个值的类型,返回的第一个值表示该值的构造函数。</li>
<li>但由于实力对象可能会自定义该方法,所有调用原型上的方法。<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(value)</span><br></pre></td></tr></table></figure>
<li>但由于实力对象可能会自定义该方法,所有调用原型上的方法。<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( instance )</span><br></pre></td></tr></table></figure>
</li>
</ul>
<h1 id="4-属性描述对象"><a href="#4-属性描述对象" class="headerlink" title="4 属性描述对象"></a>4 属性描述对象</h1><ul>
Expand Down Expand Up @@ -239,18 +239,18 @@ <h1 id="6-控制对象的状态"><a href="#6-控制对象的状态" class="heade

<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/关于 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>


<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/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/6 Array/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,18 +421,18 @@ <h1 id="3-example"><a href="#3-example" class="headerlink" title="3 example"></a

<nav id="article-nav">

<a href="/2019/05/22/关于 this 指针/" 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 this指针
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
4 changes: 2 additions & 2 deletions 2019/05/22/7 包装对象 wrapper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ <h3 id="3-4-字符串的实例方法"><a href="#3-4-字符串的实例方法" cl
</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/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
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/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/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/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/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/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/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
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/6 Array/" 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/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/关于 this 指针/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ <h2 id="2-加一个关于箭头函数的this指针"><a href="#2-加一个关于
</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/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
4 changes: 2 additions & 2 deletions archives/2019/05/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/5 标准库/" class="archive-article-date">
<a href="/2019/05/22/4 函数/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/5 标准库/">ECMA5 标准库</a>
<a class="archive-article-title" href="/2019/05/22/4 函数/">ECMA5 函数</a>
</h1>


Expand Down
16 changes: 8 additions & 8 deletions archives/2019/05/page/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ <h1 class="header-author js-header-author">chochi</h1>
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/6 Array/" class="archive-article-date">
<a href="/2019/05/22/5 标准库/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/6 Array/">ECMA5 数组</a>
<a class="archive-article-title" href="/2019/05/22/5 标准库/">ECMA5 标准库</a>
</h1>


Expand Down Expand Up @@ -204,14 +204,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/4 函数/" class="archive-article-date">
<a href="/2019/05/22/6 Array/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/4 函数/">ECMA5 函数</a>
<a class="archive-article-title" href="/2019/05/22/6 Array/">ECMA5 数组</a>
</h1>


Expand Down Expand Up @@ -253,14 +253,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/9 面向对象编程/" class="archive-article-date">
<a href="/2019/05/22/Call与Apply/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/9 面向对象编程/">ECMA5 面向对象编程</a>
<a class="archive-article-title" href="/2019/05/22/Call与Apply/">ECMA5 CALL APPLY 模拟</a>
</h1>


Expand Down Expand Up @@ -351,14 +351,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/Call与Apply/" class="archive-article-date">
<a href="/2019/05/22/9 面向对象编程/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/Call与Apply/">ECMA5 CALL APPLY 模拟</a>
<a class="archive-article-title" href="/2019/05/22/9 面向对象编程/">ECMA5 面向对象编程</a>
</h1>


Expand Down
4 changes: 2 additions & 2 deletions archives/2019/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/5 标准库/" class="archive-article-date">
<a href="/2019/05/22/4 函数/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/5 标准库/">ECMA5 标准库</a>
<a class="archive-article-title" href="/2019/05/22/4 函数/">ECMA5 函数</a>
</h1>


Expand Down
16 changes: 8 additions & 8 deletions archives/2019/page/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ <h1 class="header-author js-header-author">chochi</h1>
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/6 Array/" class="archive-article-date">
<a href="/2019/05/22/5 标准库/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/6 Array/">ECMA5 数组</a>
<a class="archive-article-title" href="/2019/05/22/5 标准库/">ECMA5 标准库</a>
</h1>


Expand Down Expand Up @@ -204,14 +204,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/4 函数/" class="archive-article-date">
<a href="/2019/05/22/6 Array/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/4 函数/">ECMA5 函数</a>
<a class="archive-article-title" href="/2019/05/22/6 Array/">ECMA5 数组</a>
</h1>


Expand Down Expand Up @@ -253,14 +253,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/9 面向对象编程/" class="archive-article-date">
<a href="/2019/05/22/Call与Apply/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/9 面向对象编程/">ECMA5 面向对象编程</a>
<a class="archive-article-title" href="/2019/05/22/Call与Apply/">ECMA5 CALL APPLY 模拟</a>
</h1>


Expand Down Expand Up @@ -351,14 +351,14 @@ <h1 itemprop="name">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<a href="/2019/05/22/Call与Apply/" class="archive-article-date">
<a href="/2019/05/22/9 面向对象编程/" class="archive-article-date">
<time datetime="2019-05-22T14:38:04.268Z" itemprop="datePublished"><i class="icon-calendar icon"></i>2019-05-22</time>
</a>
</div>


<h1 itemprop="name">
<a class="archive-article-title" href="/2019/05/22/Call与Apply/">ECMA5 CALL APPLY 模拟</a>
<a class="archive-article-title" href="/2019/05/22/9 面向对象编程/">ECMA5 面向对象编程</a>
</h1>


Expand Down
Loading

0 comments on commit 87eb562

Please sign in to comment.