Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:html
  3. Element
  4. matches method
matches
description

matches method

boolmatches(
  1. Stringselectors
)

Checks if this element matches the CSS selectors.

Implementation

bool matches(String selectors) {  if (JS('bool', '!!#.matches', this)) {    return JS('bool', '#.matches(#)', this, selectors);  } else if (JS('bool', '!!#.webkitMatchesSelector', this)) {    return JS('bool', '#.webkitMatchesSelector(#)', this, selectors);  } else if (JS('bool', '!!#.mozMatchesSelector', this)) {    return JS('bool', '#.mozMatchesSelector(#)', this, selectors);  } else if (JS('bool', '!!#.msMatchesSelector', this)) {    return JS('bool', '#.msMatchesSelector(#)', this, selectors);  } else if (JS('bool', '!!#.oMatchesSelector', this)) {    return JS('bool', '#.oMatchesSelector(#)', this, selectors);  } else {    throw new UnsupportedError("Not supported on this platform");  }}
  1. Dart
  2. dart:html
  3. Element
  4. matches method
Element class

[8]ページ先頭

©2009-2025 Movatter.jp