Skip to content

Commit

Permalink
Site updated: 2019-06-01 12:38:18
Browse files Browse the repository at this point in the history
  • Loading branch information
xxplus committed Jun 1, 2019
1 parent 9bafeb3 commit f254350
Show file tree
Hide file tree
Showing 23 changed files with 332 additions and 175 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/关于 this 指针/" 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 this指针
ECMA5 面向对象编程

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

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


<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/关于 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/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/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/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/5 标准库/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ <h1 id="6-控制对象的状态"><a href="#6-控制对象的状态" class="heade

<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
169 changes: 163 additions & 6 deletions 2019/05/22/6 Array/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta property="og:site_name" content="chochi&#39;s workshop">
<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-24T14:26:35.794Z">
<meta property="og:updated_time" content="2019-06-01T04:36:26.736Z">
<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方法,返回的字符串第二个词表示构造函数">
Expand Down Expand Up @@ -205,7 +205,164 @@ <h1 id="2-实例方法"><a href="#2-实例方法" class="headerlink" title="2
</ul>
</li>
</ul>
<p>实例方法 ————| 操作 | 参数 | 返回 | 是否改变原数组 | 其他 |<br>| :—– | :—- | :—- | :— | :—- | :—- |<br>| valueOf()||| 返回数组本身 | 否 | |<br>| toString()|| | 返回数组字符串形式 | 否 | |<br>| push() | 在数组的<strong>末端</strong>添加一个或多个元素 | 添加的元素 | 返回数组长度 |是||<br>| pop() | 删除数组<strong>最后</strong>一个元素 | 无 | 返回被删除的元素|是||<br>| shift() | 删除数组<strong>第一个</strong>元素 | 无 | 返回被删除的元素|是||<br>| unshitf() | 在数组第一个位置添加元素 | 添加的元素 | 返回数组长度|是||<br>| join()|以参数为分隔符,将数组成员链接为一个字符串| 分隔符|返回字符串|否|undefined or null or hole 转为空字符串|<br>|cantact()|链接多个数组|数组|返回一个新数组|否|数组浅拷贝(对象涉及引用问题)|<br>|recerse()|反转数组|无|改变后的数组|是||<br>|slice()| 提取数组的一部分|start,end(允许负数)|返回新数组|否|参数不合理则返回空数组|<br>|splice()|删除原数组的一部分,可在删除的位置添加新成员|start,cnt,addItem1,add..|返回被删除的元素|是|start接受负数|<br>|sort()|对原数组进行排序,默认字典序|自定义比较函数||是|数值也会被默认转为字符串|<br>|map()|成员依次执行函数,返回执行结果组成的数组|(fun(item,index,arr),obj)函数后两项可省略,obj用来绑定this|返回结果组成的新数组|否|只跳过hole,undefined &amp; null 不跳过|<br>|forEach()|依次执行参数函数,不返回|同上|无|否|无法中断执行,同上|<br>|filter()|满足条件的成员组成新数组返回|同上|满足条件的成员组成新数组返回|否||<br>|every()|所有成员返回true,则结果返回true|同上|布尔值|否||<br>|reduce()|依次处理每个成员,最终累计为一个值|fun(sum,curItem,index,arr)前两个必须|sum|否||<br>|indexf()|参数在数组中第一次出现的位置|搜索的元素|下标 or -1 | 否|内部搜索使用 ===|</p>
<table>
<thead>
<tr>
<th style="text-align:left">实例方法</th>
<th style="text-align:left">操作</th>
<th style="text-align:left">参数</th>
<th style="text-align:left">返回</th>
<th style="text-align:left">是否改变原数组</th>
<th style="text-align:left">其他</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">valueOf()</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
<td style="text-align:left">返回数组本身</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">toString()</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
<td style="text-align:left">返回数组字符串形式</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">push()</td>
<td style="text-align:left">在数组的<strong>末端</strong>添加一个或多个元素</td>
<td style="text-align:left">添加的元素</td>
<td style="text-align:left">返回数组长度</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">pop()</td>
<td style="text-align:left">删除数组<strong>最后</strong>一个元素</td>
<td style="text-align:left"></td>
<td style="text-align:left">返回被删除的元素</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">shift()</td>
<td style="text-align:left">删除数组<strong>第一个</strong>元素</td>
<td style="text-align:left"></td>
<td style="text-align:left">返回被删除的元素</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">unshitf()</td>
<td style="text-align:left">在数组第一个位置添加元素</td>
<td style="text-align:left">添加的元素</td>
<td style="text-align:left">返回数组长度</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">join()</td>
<td style="text-align:left">以参数为分隔符,将数组成员链接为一个字符串</td>
<td style="text-align:left">分隔符</td>
<td style="text-align:left">返回字符串</td>
<td style="text-align:left"></td>
<td style="text-align:left">undefined or null or hole 转为空字符串</td>
</tr>
<tr>
<td style="text-align:left">cantact()</td>
<td style="text-align:left">链接多个数组</td>
<td style="text-align:left">数组</td>
<td style="text-align:left">返回一个新数组</td>
<td style="text-align:left"></td>
<td style="text-align:left">数组浅拷贝(对象涉及引用问题)</td>
</tr>
<tr>
<td style="text-align:left">recerse()</td>
<td style="text-align:left">反转数组</td>
<td style="text-align:left"></td>
<td style="text-align:left">改变后的数组</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">slice()</td>
<td style="text-align:left">提取数组的一部分</td>
<td style="text-align:left">start,end(允许负数)</td>
<td style="text-align:left">返回新数组</td>
<td style="text-align:left"></td>
<td style="text-align:left">参数不合理则返回空数组</td>
</tr>
<tr>
<td style="text-align:left">splice()</td>
<td style="text-align:left">删除原数组的一部分,可在删除的位置添加新成员</td>
<td style="text-align:left">start,cnt,addItem1,add..</td>
<td style="text-align:left">返回被删除的元素</td>
<td style="text-align:left"></td>
<td style="text-align:left">start接受负数</td>
</tr>
<tr>
<td style="text-align:left">sort()</td>
<td style="text-align:left">对原数组进行排序,默认字典序</td>
<td style="text-align:left">自定义比较函数</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
<td style="text-align:left">数值也会被默认转为字符串</td>
</tr>
<tr>
<td style="text-align:left">map()</td>
<td style="text-align:left">成员依次执行函数,返回执行结果组成的数组</td>
<td style="text-align:left">(fun(item,index,arr),obj)函数后两项可省略,obj用来绑定this</td>
<td style="text-align:left">返回结果组成的新数组</td>
<td style="text-align:left"></td>
<td style="text-align:left">只跳过hole,undefined &amp; null 不跳过</td>
</tr>
<tr>
<td style="text-align:left">forEach()</td>
<td style="text-align:left">依次执行参数函数,不返回</td>
<td style="text-align:left">同上</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
<td style="text-align:left">无法中断执行,同上</td>
</tr>
<tr>
<td style="text-align:left">filter()</td>
<td style="text-align:left">满足条件的成员组成新数组返回</td>
<td style="text-align:left">同上</td>
<td style="text-align:left">满足条件的成员组成新数组返回</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">every()</td>
<td style="text-align:left">所有成员返回true,则结果返回true</td>
<td style="text-align:left">同上</td>
<td style="text-align:left">布尔值</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">reduce()</td>
<td style="text-align:left">依次处理每个成员,最终累计为一个值</td>
<td style="text-align:left">fun(sum,curItem,index,arr)前两个必须</td>
<td style="text-align:left">sum</td>
<td style="text-align:left"></td>
<td style="text-align:left"></td>
</tr>
<tr>
<td style="text-align:left">indexf()</td>
<td style="text-align:left">参数在数组中第一次出现的位置</td>
<td style="text-align:left">搜索的元素</td>
<td style="text-align:left">下标 or -1</td>
<td style="text-align:left"></td>
<td style="text-align:left">内部搜索使用 ===</td>
</tr>
</tbody>
</table>



Expand Down Expand Up @@ -249,18 +406,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/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/4 函数/" 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
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/3 对象/" 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/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/3 对象/" 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/关于 this 指针/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">ECMA5 this指针</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 面向对象编程/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/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/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/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 面向对象编程/" 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/5 标准库/" 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/关于 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/9 JavaScript Classes/" id="article-nav-newer" class="article-nav-link-wrap">
<a href="/2019/05/22/3 对象/" 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
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/6 Array/" 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
Loading

0 comments on commit f254350

Please sign in to comment.