看板
[ java ]
討論串[問題] 如何取得html標籤中的值??
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
加個 htmlunit 如何?. 我忘了 httpunit 的使用方式了,htmlunit 倒是覺得蠻直覺的.... 主要是檢視原始碼 -> 找出 id/name 的值 -> 叫 htmlunit 把那個. element 挖出來 -> 設定屬性值 / 進行操作 -> 然後換下一個頁面. -> 回到
(還有642個字)
內容預覽:
Pattern pattern = Pattern.compile("href=\"[^\"]*");. Matcher m = pattern.matcher(sb.toString());. while(m.find()) {. String str = m.group();. str = st
(還有1309個字)
首頁
上一頁
1
下一頁
尾頁