「トップページ/windows/プログラミング/言語/javascript/XPATH/Google Chrome」の編集履歴(バックアップ)一覧はこちら
追加された行は緑色になります。
削除された行は赤色になります。
■目次
#contents_line()
■本文
*google chromeでXPATHを取得する方法
[[Chromeだけで任意のノードのXPathを簡単に取得 たぶん革命>http://ptech.g.hatena.ne.jp/noromanba/20120528/1338307299]]
*chromeのXPATHを実行する方法
[[Chromeの開発者ツールでxPathを実行する>http://runner.sakura.ne.jp/?p=204]]
*chromeのconsoleで動作を確認
**xpathで文字列を取得し、重複を削除して、改行付で出力
var array1 = $x('xpath').filter(function (x, i, self) {return self.indexOf(x) === i;});
var array2 = array1[0].textContent;
for ( var i = 1; i < array1.length; ++i ) {array2 = array2 + "<br>" + array1[i].textContent};
prompt("重複排除", array2);
&amazon(4274946614,text,image,width=56,height=80)
&amazon(4893116487,text,image,width=56,height=80)
***関連ページ
[[勉強用メモ - トップページ/windows/プログラミング/XPATH >http://www42.atwiki.jp/tomokazu0525/pages/116.html]]
*ページフッタ
**このページの1階層上のページ
&link_parent()
**このページの1階層下のページ
#lsd()
**このページに含まれるタグ
&tags()
**このページへのアクセス数
今日:&counter(today)
昨日:&counter(yesterday)
これまで合計:&counter(total)
■目次
#contents_line()
<TABLE align="right">
<TR>
<TD>
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=tomokazu0525-22&o=9&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=4863541031" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</TD>
</TR>
<TR>
<TD>
<iframe src="http://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=tomokazu0525-22&o=9&p=8&l=as4&m=amazon&f=ifr&ref=ss_til&asins=4844334220" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</TD>
</TR>
</TABLE>
}}}}}}
■本文
*google chromeでXPATHを取得する方法
[[Chromeだけで任意のノードのXPathを簡単に取得 たぶん革命>http://ptech.g.hatena.ne.jp/noromanba/20120528/1338307299]]
*chromeのXPATHを実行する方法
[[Chromeの開発者ツールでxPathを実行する>http://runner.sakura.ne.jp/?p=204]]
*chromeのconsoleで動作を確認
**xpathで文字列を取得し、重複を削除して、改行付で出力
var array1 = $x('xpath').filter(function (x, i, self) {return self.indexOf(x) === i;});
var array2 = array1[0].textContent;
for ( var i = 1; i < array1.length; ++i ) {array2 = array2 + "<br>" + array1[i].textContent};
prompt("重複排除", array2);
&amazon(4274946614,text,image,width=56,height=80)
&amazon(4893116487,text,image,width=56,height=80)
***関連ページ
[[勉強用メモ - トップページ/windows/プログラミング/XPATH >http://www42.atwiki.jp/tomokazu0525/pages/116.html]]
*ページフッタ
**このページの1階層上のページ
&link_parent()
**このページの1階層下のページ
#lsd()
**このページに含まれるタグ
&tags()
**このページへのアクセス数
今日:&counter(today)
昨日:&counter(yesterday)
これまで合計:&counter(total)