Skip to content

Commit cd1e764

Browse files
T34-activeyin1999
authored andcommitted
[zh-cn]: create the translation of ErrorEvent colno property (mdn#25550)
Co-authored-by: A1lo <[email protected]>
1 parent 00bf2a0 commit cd1e764

File tree

1 file changed

+30
-0
lines changed
  • files/zh-cn/web/api/errorevent/colno

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: ErrorEvent:colno 属性
3+
slug: Web/API/ErrorEvent/colno
4+
l10n:
5+
sourceCommit: 5021b506f3879b6f3131b763c4bc76b6d39baafa
6+
---
7+
8+
{{APIRef("HTML DOM")}}{{AvailableInWorkers}}
9+
10+
{{domxref("ErrorEvent")}} 接口的 **`colno`** 只读属性返回一个整数,表示发生的错误在脚本文件中所位于的列号。
11+
12+
##
13+
14+
整数。
15+
16+
## 示例
17+
18+
```js
19+
window.addEventListener("error", (ev) => {
20+
console.log("错误发生在第 " + ev.colno + "");
21+
});
22+
```
23+
24+
## 规范
25+
26+
{{Specifications}}
27+
28+
## 浏览器兼容性
29+
30+
{{Compat}}

0 commit comments

Comments
 (0)