Error.prototype.columnNumber

翻譯不完整。請協助 翻譯此英文文件

非標準
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

「行數」屬性含括了檔案中引起錯誤的所在行數。

範例

使用 columnNumber

var e = new Error('Could not parse input');
throw e;
console.log(e.columnNumber) // 0

規格

不是任何規格的一部份,尚未標準化。

瀏覽器相容性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support (Yes) No support No support No support
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support (Yes) No support No support No support

See also

文件標籤與貢獻者

 此頁面的貢獻者: jerrychen1013
 最近更新: jerrychen1013,