2014-05-19から1日間の記事一覧
例)すべてのaタグのhref要素を置換する <a href="http://hoge.co.jp/"></a> <a href="http://hoge.co.jp/aaa/"></a> <a href="http://hoge.co.jp/bbb/"></a> となっていたとき var debugUrl ="debug.local"; $(function(){ $("a[href]").each(function(){ $(this).attr("href", $(this).attr("href").replace("hoge.co.jp", debugUrl)); }); }); ■a…