JavaScript 文字列操作 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(文字列検索(表示コンテンツ内検索) find)
(文字列検索(表示コンテンツ内検索) find)
545行: 545行:
 
サンプルスクリプト
 
サンプルスクリプト
 
<syntaxhighlight lang="javascript" line start="1">
 
<syntaxhighlight lang="javascript" line start="1">
 +
<!--[if !IE]>
 
bFindResult = find("麻薬");
 
bFindResult = find("麻薬");
  
 
document.write("検索結果 = ", nData1, "</BR>");
 
document.write("検索結果 = ", nData1, "</BR>");
 +
<![endif]-->
 +
<!--[if IE]>
 +
サンプルスクリプトはIEでは動作しません。
 +
<![endif]-->
 
</syntaxhighlight>
 
</syntaxhighlight>
  
554行: 559行:
  
 
<yjavascript>
 
<yjavascript>
nData1 = find("麻薬");
+
<!--[if !IE]>
 +
bFindResult = find("麻薬");
  
 
document.write("検索結果 = ", nData1, "</BR>");
 
document.write("検索結果 = ", nData1, "</BR>");
 +
<![endif]-->
 +
<!--[if IE]>
 +
サンプルスクリプトはIEでは動作しません。
 +
<![endif]-->
 
</yjavascript>
 
</yjavascript>
  

2016年7月22日 (金) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス