{{Non-standard_Header}}
Error 实例的 columnNumber 数据属性包含引发此错误的文件行中的列号。
值
正整数。
{{js_property_attributes(1, 0, 1)}}
示例
使用 columnNumber
try {
throw new Error("无法解析输入");
} catch (err) {
console.log(err.columnNumber); // 9
}
{{Non-standard_Header}}
Error 实例的 columnNumber 数据属性包含引发此错误的文件行中的列号。
正整数。
{{js_property_attributes(1, 0, 1)}}
try {
throw new Error("无法解析输入");
} catch (err) {
console.log(err.columnNumber); // 9
}