Go实战--golang中的JQUERY(PuerkitoBio/goquery、从html中获取链接)

生命不止,继续 go go go !!!
jQuery应该说是家喻户晓。

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

jQuery 是一个 JavaScript 函数库。
jQuery 库包含以下特性:
HTML 元素选取
HTML 元素操作
CSS 操作
HTML 事件函数
JavaScript 特效和动画
HTML DOM 遍历和修改
AJAX
Utilities

在golang的世界中,
github.com/PuerkitoBio/goquery 这个库就实现了类似 jQuery 的功能,让我们能方便的使用 Go 语言操作 HTML 文档。

记住,如果使用golang做爬虫方面的事儿,你可能会用到goquery啊!

参考:
http://blog.studygolang.com/2015/04/go-jquery-goquery/

PuerkitoBio/goquery

gi

你可能感兴趣的:(go,Go从不放弃到实战)