2010-03-19から1日間の記事一覧
http://www.tohoho-web.com/js/regexp.htm "12:34:56".match(/(\d+):(\d+):(\d+)/); document.write(RegExp.$1 + "<br>"); // → 12 document.write(RegExp.$2 + "<br>"); // → 34 document.write(RegExp.$3 + "<br>"); // → 56RegExpが定義されていないような感じだけど…
querySelector や querySelectorAll http://d.hatena.ne.jp/amachang/20080306/1204787459 document.querySelectorAll("タグ.class"); document.querySelectorAll("div.strong");とか Allは全部取得するけど、querySelectorは先頭の一つだけ取得する。 文字…
manifest.jsonでpermissionの設定すればクロスドメインできる...!できないらしい。 http://d.hatena.ne.jp/love_firefoxportable/20091214/1260801125 background_page.htmlというファイルを作ってそこで、XMLHttpRequestして、結果を返してあげればできまし…