Error.prototype.columnNumber
非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!
**columnNumber
**属性包含引发此错误的文件行中的列号。
示例
使用 columnNumber
js
var e = new Error("Could not parse input");
throw e;
console.log(e.columnNumber); // 0
规范
No specification found
No specification data found for javascript.builtins.Error.columnNumber
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
浏览器兼容性
BCD tables only load in the browser