A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Error/columnNumber below:

Error.prototype.columnNumber - JavaScript | MDN

Error.prototype.columnNumber

非标准: 该特性尚未标准化。我们不建议在生产环境中使用非标准特性,因为它们在浏览器中的支持有限,且可能发生变化或被移除。不过,在没有标准选项的特定情况下,它们可以作为合适的替代方案。

Error 实例的 columnNumber 数据属性包含引发此错误的文件行中的列号。

值

正整数。

可写 是 可枚举 否 可配置 是 示例 使用 columnNumber
try {
  throw new Error("无法解析输入");
} catch (err) {
  console.log(err.columnNumber); // 9
}
规范

不属于任何规范。

浏览器兼容性 参见

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4