SVGNumberList: clear() メソッド
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
clear() は SVGNumberList インターフェイスのメソッドで、リストから既存のアイテムをすべてクリアし、リストを空にします。
構文
js
clear()
引数
なし。
返値
なし (undefined)。
例外
DOMExceptionNoModificationAllowedError-
SVGNumberListが読み取り専用属性に相当するか、オブジェクト自身が読み取り専用である場合に発生します。
仕様書
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # __svg__SVGNameList__clear> |
ブラウザーの互換性
Loading…