Error: columnNumber
비표준: 이 기능은 비표준이므로 실제 프로덕션에서 사용하지 마세요. 모든 사용자 환경에서 작동하지 않을 수 도 있으며, 미래에 호환성 문제가 생길 수 있습니다.
Error
인스턴스의 columnNumber
데이터 속성은 이 오류가 발생한 파일의 행의 열 번호를 포함합니다.
값
양의 정수.
Property attributes of Error: columnNumber | |
---|---|
쓰기 가능 | 가능 |
열거 가능 | 불가능 |
설정 가능 | 가능 |
예제
columnNumber 사용하기
js
try {
throw new Error("Could not parse input");
} catch (err) {
console.log(err.columnNumber); // 9
}
명세
표준의 일부가 아닙니다.
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
columnNumber |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.