javascript
昔書いたJavaScriptのみのソースをjQueryとCoffeeScriptを使ったソースに書き換えてみた 昔のソース http://www.x-shenwu.net/~home_page/js/sample/f/sample1_f.html jQueryとCoffeeScript <html> <head> <title>test</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"> </script> </head></html>
(function(){ var x = 1, y = 1, z = 1, count = 0; for(x=1; x<10; x++ ){ for(y=1; y<10; y++){ for(z=1; z<10; z++){ if( x+y+z == 10 ){ count++; } } } } console.log(count); })() 36組
http://www.x-shenwu.net/~home_page/jquery/sample/f/sample1_f.html
ここの記事は、 http://www.x-shenwu.net/~home_page/jquery/nantonaku.html に移しました。 $() こいつは引数によって、意味がことなると考えるのがよいだろう。 引数にタグネームを与えた場合 $('div') document.getElementsByTagName()に相当。 相当とか…
http://www.x-shenwu.net/~home_page/js/sample/f/sample18_f.html
http://www.x-shenwu.net/~home_page/js/sample/f/sample17_f.htmlあとトップページを簡潔にしました。 http://www.x-shenwu.net/~home_page/
http://www.x-shenwu.net/~home_page/js/sample/f/sample16_f.html http://www.x-shenwu.net/~home_page/js/source/source16.html http://www.x-shenwu.net/~home_page/js/memo/memo16.html
ゲームプログラムなどコンピュータが思考中、クリックされると やっかいなことがある、そこでどのようにしたらいいのかと思い書いてみた。どのようにするのがメジャーなんだろう..... http://www.x-shenwu.net/~home_page/js/sample/f/sample12_f.html http:…
http://www.x-shenwu.net/~home_page/js/sample/f/sample11_f.html
Firefoxに対応させました。 http://www.x-shenwu.net/~home_page/js/sample/f/sample10_f.html
http://www.x-shenwu.net/~home_page/js/sample/f/sample9_f.html 追記: JavaScriptでルーレット Firefox対応版 - bi_naの日記
http://www.x-shenwu.net/~home_page/js/sample/f/sample8_f.html http://www.x-shenwu.net/~home_page/js/
ここまでしなくても 普通にすればよかったのではないかとも思えるが.....http://www.x-shenwu.net/~home_page/js/sample/f/sample5_f.html http://www.x-shenwu.net/~home_page/js/source/source5.html
http://www.x-shenwu.net/~home_page/js/sample/f/sample4_f.html http://www.x-shenwu.net/~home_page/js/source/source4.html http://www.x-shenwu.net/~home_page/js/memo/memo4.html
http://www.x-shenwu.net/~home_page/js/
JSのページを作りました http://www.x-shenwu.net/~home_page/js/ //--------------------------------------------------------------------// // 前処理 //--------------------------------------------------------------------// document.body.innerHT…
JSのページを作りました http://www.x-shenwu.net/~home_page/js/ //--------------------------------------------------------------------// // 前処理 //--------------------------------------------------------------------// var i; // ***********…
JSのページを作りました http://www.x-shenwu.net/~home_page/js/ //--------------------------------------------------------------------// // 前処理 //--------------------------------------------------------------------// document.body.innerHT…
インターン講義4日目「JavaScript で学ぶ イベントドリブン」 - Hatena Developer Blog を見て知ったことを自分用にまとめ。 プリミティブな値 number, boolean, string とかはプリミティブ。 Javaの int とかそんな感じ。 Javaだと int をラップする Intege…