Element: hasAttributes() メソッド
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月.
hasAttributes()
は Element
インターフェイスのメソッドで、現在の要素が属性を持っているか否かを論理値で返します。