windowsPhone()

更新日: 2018-09-14

is.windowsPhone()

現在の端末がWindowsPhoneかどうかを判定します。

インターフェース:
not
is.windowsPhone();
=> 端末がWindowsPhoneならtrueを返します。

is.not.windowsPhone();
=> 端末がWindowsPhoneでないならtrueを返します。

デモ

端末を判定してconsole.logを出力します。

JavaScript
if (is.windowsPhone()) {
  console.log('使用している端末はWindowsPhone端末です。');
} else {
  console.log('使用している端末はWindowsPhone端末ではありません。');
}


© 2014-2016 Aras Atasaygin Released under the MIT license

このコンテンツはAras Atasaygin(arasatasaygin)によるis.jsドキュメントを翻訳/改変したものです。