Skip to content

Commit ea324e5

Browse files
authored
docs(cndocs): 同步翻译更新(高质量) (#1000)
1 parent 9791cd4 commit ea324e5

4 files changed

Lines changed: 123 additions & 77 deletions

File tree

cndocs/debugging-release-builds.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import con
2020

2121
在上述堆栈跟踪中,类似`p@1:132161`的条目是经过压缩的函数名称和字节码偏移量。为了调试这些调用,我们希望将它们转换为文件、行和函数名称,例如`AwesomeProject/App.js:54:initializeMap`。这被称为**符号化**
2222

23-
您可以通过将堆栈跟踪和生成的源映射传递给[`metro-symbolicate`](http://npmjs.com/package/metro-symbolicate)来对上述类似的经过压缩的函数名称和字节码进行符号化。
23+
您可以通过将堆栈跟踪和生成的源映射传递给[`metro-symbolicate`](https://www.npmjs.com/package/metro-symbolicate)来对上述类似的经过压缩的函数名称和字节码进行符号化。
2424

2525

2626
### 启用源映射(source map)
@@ -62,7 +62,7 @@ Writing sourcemap output to:, android/app/build/intermediates/sourcemaps/react/r
6262
- 在其他导出项之上,添加具有所需输出路径的 `SOURCEMAP_FILE` 条目。
6363

6464
```diff
65-
+ SOURCEMAP_FILE="$(pwd)/../main.jsbundle.map";
65+
+ export SOURCEMAP_FILE="$(pwd)/../main.jsbundle.map"
6666
WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh"
6767
```
6868

cndocs/element-nodes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export default ViewWithRefs;
8484
- ℹ️ 返回 `id``nativeID` props 的值。
8585
- [`lastElementChild`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/lastElementChild)
8686
- [`nextElementSibling`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/nextElementSibling)
87-
- [`nodeName`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/nodeName)
88-
- [`nodeType`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/nodeType)
89-
- [`nodeValue`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/nodeValue)
87+
- [`nodeName`](https://developer.mozilla.org/zh-CN/docs/Web/API/Node/nodeName)
88+
- [`nodeType`](https://developer.mozilla.org/zh-CN/docs/Web/API/Node/nodeType)
89+
- [`nodeValue`](https://developer.mozilla.org/zh-CN/docs/Web/API/Node/nodeValue)
9090
- [`previousElementSibling`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/previousElementSibling)
9191
- [`scrollHeight`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollHeight)
9292
- [`scrollLeft`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollLeft)
@@ -96,7 +96,7 @@ export default ViewWithRefs;
9696
- [`scrollWidth`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollWidth)
9797
- [`tagName`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/tagName)
9898
- ℹ️ 返回带有 `RN:` 前缀的规范化原生组件名称,如 `RN:View`
99-
- [`textContent`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/textContent)
99+
- [`textContent`](https://developer.mozilla.org/zh-CN/docs/Web/API/Node/textContent)
100100
- 方法
101101
- [`getBoundingClientRect()`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/getBoundingClientRect)
102102
- [`hasPointerCapture()`](https://developer.mozilla.org/zh-CN/docs/Web/API/Element/hasPointerCapture)

0 commit comments

Comments
 (0)