2015-01-01から1ヶ月間の記事一覧
.triangle-top_0:before { content: ""; display: block; width: 0; height: 0; border-bottom: 4px solid #333; border-left: 4px solid transparent; border-right: 4px solid transparent; } #triangle-bottom_0:after { content: ""; display: block; wi…
グラフ描画後以下のスクリプトを実行ポイント (1)再描画ごとに新しく書き直すためpostDrawHooksを利用 (2)点(div class=jqplot-point-label)がソース上canvasの上側にあるのが問題なので、 下に移動する. (3)クラス名でグラフを管理している場合…
親要素のIDを取得 parentで親の要素全体を取得してattr("class")でclass属性を取得する. $(this).parent だけだとhtmlがかえってきてだめなのがポイント. $('div[class2^="pp"]').on('click','canvas', function(){ alert($(this).parent().attr("class")…
JavaScriptのオブジェクトを扱うとき、=は値渡しではない - woshidan's blog http://woshidan.hatenablog.com/entry/2014/09/06/002003 … plot3_prop=JSON.parse(JSON.stringify(plot1_prop));
空白でくぎって出力して、rmにつなぐ find . -name "*_test_test*" | xargs rm これだとスペースがあるファイルは検出できないので、 find . -name "*_test_test*" -print0 | xargs -0 rm http://openlab.dino.co.jp/2008/02/20/133431188.html
2つのCSVのファイルの1列目でマージ. join コマンドを使う。 joinは事前にsort する必要あり. join コマンド http://yut.hatenablog.com/entry/20120907/1346975281 入力ファイル source1.txt 5,a 2,b 3,c 1,d source2.txt 1,A 2,B 3,C 5,D 7,E スクリプ…
.on の使い方(新しい要素にイベントを関連付ける) https://app.codegrid.net/entry/practical-jquery-1 を参照.JQUERYでは存在しない要素にはイベントをつけられない. そこで.onを使ってあとからつけた要素にもイベントを発生させられるようにする. 「…