Browse Source

Translate link-list document

pull/3559/head
liangshiwei 6 years ago
parent
commit
bc3676cfd4
  1. 17
      docs/en/UI/Common/Utils/Linked-List.md
  2. 3
      docs/zh-Hans/UI/AspNetCore/Libraries/DatatablesNet.md
  3. 1456
      docs/zh-Hans/UI/Common/Utils/Linked-List.md
  4. 9
      docs/zh-Hans/docs-nav.json

17
docs/en/UI/Common/Utils/Linked-List.md

@ -1384,7 +1384,7 @@ list.forEach((node, index) => console.log(node.value + index));
#### \*\[Symbol.iterator\]\(\)
A linked list is iterable. In other words, you may use methods like `for...of` on it.
链表是可迭代的. 换句话说你可以使用诸如`for ... of`之类的方法.
```js
list.addTailMany(['a', 'b', 'c']);
@ -1408,7 +1408,7 @@ for(const node of list) {
toArray(): T\[\]
```
Converts a linked list to an array of values:
转换链表值为数组:
```js
list.addTailMany(['a', 'b', 'c']);
@ -1430,7 +1430,7 @@ arr === ['a', 'b', 'c']
toNodeArray(): T\[\]
```
Converts a linked list to an array of nodes:
转换链表节点为数组:
```js
list.addTailMany(['a', 'b', 'c']);
@ -1454,7 +1454,7 @@ arr[2].value === 'a'
toString(): string
```
Converts a linked list to a string representation of nodes and their relations:
将链表转换为节点及其关系的字符串表示形式:
```js
list.addTailMany(['a', 2, 'c', { k: 4, v: 'd' }]);
@ -1468,9 +1468,7 @@ str === '"a" <-> 2 <-> "c" <-> {"k":4,"v":"d"}'
*/
```
You may pass a custom mapper function to map values before stringifying them:
你可以在对值进行字符串化之前通过自定义映射器函数来映射值:
```js
list.addMany([{ x: 1 }, { x: 2 }, { x: 3 }, { x: 4 }, { x: 5 }]).tail();
@ -1482,7 +1480,4 @@ const str = list.toString(value => value.x);
/*
str === '1 <-> 2 <-> 3 <-> 4 <-> 5'
*/
```
```

3
docs/zh-Hans/UI/AspNetCore/Libraries/DatatablesNet.md

@ -0,0 +1,3 @@
# ABP ASP.NET Core UI Datatables.Net 集成
TODO

1456
docs/zh-Hans/UI/Common/Utils/Linked-List.md

File diff suppressed because it is too large

9
docs/zh-Hans/docs-nav.json

@ -313,6 +313,15 @@
"path": "UI/Angular/Component-Replacement.md"
}
]
},
{
"text": "公共",
"items": [
{
"text": "链表 (双向)",
"path": "UI/Common/Utils/Linked-List.md"
}
]
}
]
},

Loading…
Cancel
Save