Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuechun committed Jul 30, 2017
1 parent 2c2af22 commit 927e5e2
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 11 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [

{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceRoot}"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"webRoot": "${workspaceRoot}"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
<script>
// const endpoint = 'https://gist.githubusercontent.com/Miserlou/c5cd8364bf9b2420bb29/raw/2bf258763cdddd704f8ffd3ea9a3e81d25e2c6f6/cities.json';

const endpoint = 'https://gist.githubusercontent.com/liyuechun/f00bb31fb8f46ee0a283a4d182f691b4/raw/3ea4b427917048cdc596b38b67b5ed664605b76d/TangPoetry.json';
const endpoint =
'https://gist.githubusercontent.com/liyuechun/f00bb31fb8f46ee0a283a4d182f691b4/raw/3ea4b427917048cdc596b38b67b5ed664605b76d/TangPoetry.json';


const poetrys = [];
Expand Down Expand Up @@ -80,4 +81,4 @@

</body>

</html>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ input.search {
padding: 20px;
display: flex;
flex-direction: column;
/*align-items: flex-start;*/
}

span.title {
Expand Down
20 changes: 12 additions & 8 deletions 07 - Array Cardio Day 2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> 作者:©[liyuechun](https://github.com/liyuechun)
> 简介:[JavaScript30](https://javascript30.com)[Wes Bos](https://github.com/wesbos) 推出的一个 30 天挑战。项目免费提供了 30 个视频教程、30 个挑战的起始文档和 30 个挑战解决方案源代码。目的是帮助人们用纯 JavaScript 来写东西,不借助框架和库,也不使用编译器和引用。现在你看到的是这系列指南的第 7 篇。完整中文版指南及视频教程在 [从零到壹全栈部落](http://kongyixueyuan.com/course/4188)
第七天的练习是接着之前[Day07 - Array Cardio 中文指南一](http://bbs.kongyixueyuan.com/topic/40/day04-array-cardio-%E6%8C%87%E5%8D%97%E4%B8%80)的练习,继续熟练数组的方法,依旧没有页面显示效果,所以请打开浏览器的Console面板进行调试运行。
第七天的练习是接着之前[Day04 - Array Cardio 中文指南一](http://bbs.kongyixueyuan.com/topic/40/day04-array-cardio-%E6%8C%87%E5%8D%97%E4%B8%80)的练习,继续熟练数组的方法,依旧没有页面显示效果,所以请打开浏览器的Console面板进行调试运行。

![](http://om1c35wrq.bkt.clouddn.com/dya7%20-%20000.png)
![](http://om1c35wrq.bkt.clouddn.com/day7%20-%20001.png)
Expand Down Expand Up @@ -48,7 +48,7 @@ const comments = [
- CASE

```js
let isBiggerThan10 = (element, index, array) {
let isBiggerThan10 = (element, index, array) => {
return element > 10;
}

Expand Down Expand Up @@ -117,7 +117,7 @@ console.log(isAdult);
- CASE

```js
let isBigEnough => (element, index, array) {
let isBigEnough = (element, index, array) => {
return element >= 10;
}

Expand Down Expand Up @@ -161,7 +161,7 @@ console.log({everyAdult});
- CASE

```js
let = isBigEnough => (element) {
let isBigEnough = (element) => {
return element >= 15;
}

Expand Down Expand Up @@ -205,7 +205,7 @@ console.log(findComment);
- CASE

```js
let isBigEnough => (element) {
let isBigEnough = (element) => {
return element >= 15;
}

Expand Down Expand Up @@ -249,7 +249,7 @@ console.log(findCommentIndex);

- CASE

在索引2的位置移动0个元素,并且插入"drum"
在索引2的位置移除0个元素,并且插入"drum"

```js
var myFish = ['angel', 'clown', 'mandarin', 'sturgeon'];
Expand Down Expand Up @@ -335,9 +335,9 @@ arr.slice()
arr.slice(begin)
arr.slice(begin, end)
```
**arr.slice()**等价于**arr.slice(0,arr.length - 1)**
**arr.slice()**等价于**arr.slice(0,arr.length)**

**arr.slice(begin)**等价于**arr.slice(begin,arr.length - 1)**
**arr.slice(begin)**等价于**arr.slice(begin,arr.length)**

`arr.slice(begin, end)`:创建一个新数组,将索引`begin`-`end`(不包含end)的元素放到新数组中并返回新数组,原数组不被修改。

Expand Down Expand Up @@ -391,3 +391,7 @@ const newComments = [
|:---------:|
|![](http://orhm8wuhd.bkt.clouddn.com/quanzhanbuluo.png)|





0 comments on commit 927e5e2

Please sign in to comment.