@@ -1,6 +1,6 @@
# 查找散杂数
-## 题目 [^1]
+## 题目
Given an array, find the int that appears an odd number of times.
@@ -14,7 +14,7 @@ Examples:
[1,1,2,-2,5,2,4,4,-1,-2,5] => -1
```
-[^1]: <https://www.codewars.com/kata/find-the-odd-int>
+题目地址: <https://www.codewars.com/kata/find-the-odd-int>
## 思路
You are given an odd-length array of integers, in which all of them are the same, except for one single number.
@@ -16,7 +16,7 @@ Examples:
[17, 17, 3, 17, 17, 17, 17] => 3
-[^1]: <https://www.codewars.com/kata/find-the-stray-number>
+题目地址: <https://www.codewars.com/kata/find-the-stray-number>
## 思路一
# 奇数求和
Given the triangle of consecutive odd numbers:
@@ -19,7 +19,7 @@ rowSumOddNumbers(1); // 1
rowSumOddNumbers(2); // 3 + 5 = 8
-[^1]: <https://www.codewars.com/kata/sum-of-odd-numbers>
+题目地址: <https://www.codewars.com/kata/sum-of-odd-numbers>
## 解题思路
@@ -1,8 +1,8 @@
-# Electron [^1]
+# Electron
目前支持:Mac、Win、Linux三个平台。
-[^1]: 快速示例: <https://github.com/electron/electron-quick-start>
+快速示例: <https://github.com/electron/electron-quick-start>
## 打包工具
@@ -8,9 +8,7 @@ koa 2.0以上版本
npm install koa
-(更新本文时的最新版本为2.0 alpha [^1])
-
-[^1]: 最新版本: <https://github.com/koajs/koa>
+(更新本文时的最新版本为2.0 alpha, 最新版本: <https://github.com/koajs/koa> )
## 带async的示例
-# React and Redux [^1]
+# React and Redux
> view层发出actions通知触发store里的reducer从而来更新state;state的改变会将更新反馈给我们的view层,从而让我们的view层发生相应的反应给用户。
-[^1]: 中文文档: <https://github.com/camsong/redux-in-chinese>
+中文文档: <https://github.com/camsong/redux-in-chinese>
## 流程图
-# Socket.IO [^1]
+# Socket.IO
-[^1]: <http://socket.io/>
+<http://socket.io/>
## Server
-# Vue [^1]
+# Vue
-[^1]: 官方文档: <https://cn.vuejs.org/>
+官方文档: <https://cn.vuejs.org/>
特色是单文件组件(模块化开发)。
@@ -1,14 +1,16 @@
# 正则替换
-## RegExp 对象[^1]
+## RegExp 对象
-[^1]: 参考: <https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/RegExp>
+参考:
+
+<https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/RegExp>
工具:
* RegExp tester (Chrome插件)
-## 例题[^2]
+## 例题
Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number.
@@ -21,7 +23,7 @@ createPhoneNumber([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]) // => returns "(123) 456-7890"
The returned format must be correct in order to complete this challenge.
Don't forget the space after the closing parenthese!
-[^2]: <https://www.codewars.com/kata/create-phone-number>
+题目地址: <https://www.codewars.com/kata/create-phone-number>
答案:
@@ -21,10 +21,9 @@
## 配置 Vue2 + Webpack2
-需要注意`Webpack` 2.x.x 版本与 1.x.x 版本发生了不少改动[^1]。
+需要注意`Webpack` 2.x.x 版本与 1.x.x 版本发生了不少改动。
-[^1]: 可以参考迁移文档: <https://webpack.js.org/guides/migrating/> 进行学习。
+可以参考迁移文档: <https://webpack.js.org/guides/migrating/> 进行学习。
### 坑1: extract-text-webpack-plugin
@@ -196,9 +195,9 @@ module.exports = (lang = 'default') => {
如有其它语言,添加对应语言文件即可。
-### Hosts.js[^2] 分级列表
+### Hosts.js 分级列表
-[^2]: Hosts.js项目源码: <https://github.com/js-cool/Hosts.js>
+Hosts.js项目源码: <https://github.com/js-cool/Hosts.js>
特点:
# 元编程构造简单优雅解决方案
-ECMAScript 6中引入了相关 API —— `Proxy`[^1]。
+ECMAScript 6中引入了相关 API —— `Proxy`。
-[^1]: 参考文档: <https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Proxy>
+参考文档: <https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Proxy>
搭配`Reflect`使用例子:
@@ -36,9 +36,9 @@ var loggedObj = new Proxy(obj, {
本章节以 ***腾讯云/QCloud*** 为例。
-### 云服务器 CVM[^2]
+### 云服务器 CVM
-[^2]: 文档说明:<https://www.qcloud.com/document/api/213/6978>
+文档说明:<https://www.qcloud.com/document/api/213/6978>
请求形式:
@@ -79,9 +79,9 @@
![Image](/_static/mind/team/maslows.jpg)
-这是第五层次:自我实现的需要[^1]。
+这是第五层次:自我实现的需要。
-[^1]: 自我实现需求(Self-actualization),是最高层次的需求,包括针对于真善美至高人生境界获得的需求,因此前面四项需求都能满足,最高层次的需求方能相继产生,是一种衍生性需求,如:自我实现,发挥潜能等。
+> 自我实现需求(Self-actualization),是最高层次的需求,包括针对于真善美至高人生境界获得的需求,因此前面四项需求都能满足,最高层次的需求方能相继产生,是一种衍生性需求,如:自我实现,发挥潜能等。
### 人性