Development/Javascript
[Javascript] queryCommandSupported() - ❌
레오나르도 다빈츠
2021. 12. 31. 15:11
◽ queryCommandSupported()
해당 브라우저에서 command 지원여부를 알 수 있는 API이다.
but,, 더 이상 사용되지 않는다. (Deprecated)
isSupported = document.queryCommandSupported(command);
◽ 예제
if (document.queryCommandSupported("cut")) {
console.log("지원함");
} else {
console.log("지원안함");
}
출처
Document.queryCommandSupported() - Web APIs | MDN
The Document.queryCommandSupported() method reports whether or not the specified editor command is supported by the browser.
developer.mozilla.org
개인적으로 공부한 내용을 정리하는 블로그로
잘못된 개념을 게시하지않도록 주의하고 있으나 오류가 있을 수 있습니다.