JavaScript オブジェクト 新しいページはコチラ
提供: yonewiki
(→propertyIsEnumerable() メソッド) |
(→prototype.isPrototypeOf() メソッド) |
||
644行: | 644行: | ||
サンプル | サンプル | ||
<syntaxhighlight lang="javascript" line start="1"> | <syntaxhighlight lang="javascript" line start="1"> | ||
− | + | <HTML> | |
+ | <HEAD> | ||
+ | <TITLE>JavaScript メソッド.prototype.isPrototypeOf()</TITLE> | ||
+ | </HEAD> | ||
+ | <BODY> | ||
+ | JavaScript メソッド.prototype.isPrototypeOf()<br /> | ||
+ | <SCRIPT Language="JavaScript"> | ||
+ | <!-- | ||
+ | objObject = new Object; | ||
+ | document.write("■prototype.isPrototypeOf()<BR />"); | ||
+ | document.write(Object.prototype.isPrototypeOf(objObject)); | ||
+ | --> | ||
+ | </SCRIPT> | ||
+ | </BODY> | ||
+ | </HTML> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Media:JavaScript Object isPrototypeOf.html|実行結果サンプル]] | [[Media:JavaScript Object isPrototypeOf.html|実行結果サンプル]] |