g*****u 发帖数: 14294 | 1 HTML的都好parse, JAVA SCRIPT显示的文本咋整? |
T*********g 发帖数: 496 | 2 你可以试试apache htmlunit,它是一个 Java写成的模拟浏览器框架。 不过有的时候
如果javascript写的不太好,htmlunit的javascript解析器解析不了。
试试总是好的。 |
T*********g 发帖数: 496 | 3 我查了一下,最新的htmlunit可以支持下面这些javascript框架
jQuery 1.2.6: Full support (see unit test here)
MochiKit 1.4.1: Full support (see unit tests here)
GWT 2.0.0: Full support (see unit test here)
Sarissa 0.9.9.3: Full support (see unit test here)
MooTools 1.2.1: Full support (see unit test here)
Prototype 1.6.0: Very good support (see unit test here)
Ext JS 2.2: Very good support (see unit test here)
Dojo 1.0.2: Good support (see unit test here)
YUI 2.3.0: Good support (see unit test here)
基本上只要javascript写的还行,htmlunit应该都没问题。 |
g*****u 发帖数: 14294 | 4 多谢了。俺试验一下。
2个包子了表谢意!
【在 T*********g 的大作中提到】 : 我查了一下,最新的htmlunit可以支持下面这些javascript框架 : jQuery 1.2.6: Full support (see unit test here) : MochiKit 1.4.1: Full support (see unit tests here) : GWT 2.0.0: Full support (see unit test here) : Sarissa 0.9.9.3: Full support (see unit test here) : MooTools 1.2.1: Full support (see unit test here) : Prototype 1.6.0: Very good support (see unit test here) : Ext JS 2.2: Very good support (see unit test here) : Dojo 1.0.2: Good support (see unit test here) : YUI 2.3.0: Good support (see unit test here)
|