2010-03-02から1日間の記事一覧
【問題】 Simpsonの公式は上に示したのより更に正確な数値積分法である。 Simpsonの公式を使えば、a から b までの関数 f の積分は、 偶整数 n に対し、h = (b-a)/nまた、 y_k = f(a+kh) として、(h/3)[y_0 + 4・y_1 + 2・y_2 + 4・y_3 + 2・y_4 + ... + 2・…
header :h1〜h6要素のこと。独自フィルターにするほど使うのか? contains:特定の文字列が含まれている要素。 has :特定の「要素」が含まれている要素。 parent :子要素やテキストを含む要素を指定可能。IsParent?みたいなニュアンスかな。とりあえず競…
これは今までのセレクターでは代用できないかなぁ。覚えてた方が便利だろ。 <html> <head> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript">google.load("jquery", "1.3.2");</script> <script type="text/javascript"> $(function() { $("li:lt(2)").css("color","red"); $("li:eq(2)").css("col…</head></html>
このセレクターは前にnth-child擬似クラスでちょっと出てきたからまぁ迷わんだろう。 <html> <head> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript">google.load("jquery", "1.3.2");</script> <script type="text/javascript"> $(function() { $("li:odd").css("color","red"); $("li:even").cs…</head></html>
う〜ん、わかんねぇ。。 first-child/last-childセレクターが共通の親要素を持つ要素から最初(または最後)の要素を選択するのに対して、 last/firstフィルターは指定したセレクターで最初(最後)に登場する要素を指定できます。first-child、last-child…