Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 jsoup 解析 HTML 页面。有没有办法使用 jsoup 确定每个元素在页面上相对于页面顶部的位置?
不,因为 Jsoup 只解析 HTML。你需要一些东西来考虑 CSS 和 JavaScript——根据你在做什么,看看Selenium、Cobra或PhantomJS。
我有一个关于在 shell 脚本中嵌入脚本文件的问题。我经常需要创建一个单独的 shell 脚本来解包其他脚本,但我真的不喜欢注释掉所有嵌入脚本的变量。我的 shell 脚本内容示例:
echo "Hello world" pwd cat>embedded_perl_script&l