看板 [ java ]
討論串[問題] 如何取得html標籤中的值??
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Ada.時間19年前 (2006/10/11 02:01), 編輯資訊
0
0
2
內容預覽:
加個 htmlunit 如何?. 我忘了 httpunit 的使用方式了,htmlunit 倒是覺得蠻直覺的.... 主要是檢視原始碼 -> 找出 id/name 的值 -> 叫 htmlunit 把那個. element 挖出來 -> 設定屬性值 / 進行操作 -> 然後換下一個頁面. -> 回到
(還有642個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者fungi8210時間19年前 (2006/10/10 22:16), 編輯資訊
0
0
9
內容預覽:
httpunit 也很好用喔!!. http://httpunit.sourceforge.net/. try it!!!. 引述《feicsh.bbs@bbs.wretch.cc (飛)》之銘言:. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 220.236.102.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者feicsh.時間19年前 (2006/10/10 21:01), 編輯資訊
0
0
8
內容預覽:
Pattern pattern = Pattern.compile("href=\"[^\"]*");. Matcher m = pattern.matcher(sb.toString());. while(m.find()) {. String str = m.group();. str = st
(還有1309個字)
首頁
上一頁
1
下一頁
尾頁