[Javascript] jQuery
面白い。prototype.js が Rubyに影響を受けたメソッドを持っているのは有名だけど。jQueryは
jQuery gets a lot of its inspiration from the power behind the Prototype library.
ということで、prototype.js以上に Rubyっぽくて何とメソッドチェーンがバリバリ出てくる。
$("p").find("a").css("fontWeight","bold");
これは、<p>タグに含まれる <a>タグに "fontWeight: bold" を反映させる。メソッドをつなぐ快感が jQueryにはある。