メモ
【JS】
むずい
PromiseとGenerator(非同期処理をわかりやすく書くために)
https://qiita.com/kiyodori/items/da434d169755cbb20447
それに付随するもの↓↓
async / await
https://www.sejuku.net/blog/69618
【jquery】
each()
https://www.sejuku.net/blog/33609
【js】配列系
検索
https://www.sejuku.net/blog/21049
削除
https://www.sejuku.net/blog/22295
【js】
for文のループ処理
https://www.sejuku.net/blog/20777
foreach
https://www.sejuku.net/blog/20257
map()、「え、functionの記述無くてもOK?」
https://hfuji.hatenablog.jp/entry/2016/06/28/232820
innerHTMLとappendChildの違いサクッと
https://www.sejuku.net/blog/26442
appendと何が違う?appendChild
https://www.sejuku.net/blog/49970
https://tridentwebdesign.blog.fc2.com/blog-entry-578.html
どっかいったけど
変数の命名規則
スネークととかなんたら…
【js】ネスト
【js】数値型の変数同士の演算の書き方
https://pinkmonky.net/detail/?id=61
【js】連想配列とオブジェクト
https://javascript.step-learn.com/contents/20141009-object.html
無名関数と即時関数
https://qiita.com/katsukii/items/cfe9fd968ba0db603b1e
https://qiita.com/comameito/items/0508fe56ab71fea37653
https://www.sejuku.net/blog/60321#i
undefined
https://www.sejuku.net/blog/28461
サーバー上のテキストファイルを読み込む
https://memorva.jp/memo/html/js_jquery_xmlhttprequest_get_text_file.php
コールバック関数
https://sbfl.net/blog/2019/02/08/javascript-callback-func/
プルダウンの値取得
https://www.flatflag.nir87.com/change-1761#value
http://www.natural-science.or.jp/article/20170216112218.php
https://webllica.com/jquery-select-set-get/
switch文
https://www.sejuku.net/blog/20747
jsのコンテンツ追加
https://engineer-club.jp/jquery-append#append
DBでエラーが起きるカラム名や文字の長さ設定
https://blanche-toile.com/web/php-mysql-insert-error-check
フォーム:入力不可
http://www.koikikukan.com/archives/2009/04/26-003300.php
ajax通信中のローディング画面
https://qiita.com/dkmrkm/items/4aa1a457dd26806e9008
https://www.benricho.org/loading_images/svg01.html
sleep関数
https://techacademy.jp/magazine/11685
https://thk.kanzae.net/net/itc/t5840/
http://ginpro.winofsql.jp/article/419510275.html
画像キャプチャ
https://siguniang.wordpress.com/2013/07/18/capturing-screenshots-with-casperjs/
https://thk.kanzae.net/net/itc/t5840/
パラメータ、バリデーション、サニタイズ
https://gray-code.com/php/make-the-board-vol20/
https://qiita.com/kanataxa/items/522efb74421255f0e0a1
jQueryのchangeの使い方
https://www.sejuku.net/blog/41231#change
https://www.flatflag.nir87.com/change-1761#change-2
hiddenでidを渡そう
https://www.sejuku.net/blog/83301
tplのパスの書き方落とし穴
ローカルで作っているときはそのファイルからスタートさせてパスを記述していた。
しかし、実際には読み込まれた先のファイルを基準にパスを書く
例)
../css ➡ローカルでOKでもサーバ上でNG
./css ➡サーバ上でOK
めんどくさいから全て同じ階層に置けばOK(笑)
パスの復習
http://www.shoshinsha.com/hp/1hour/know/pass.html
エラーの見つけ方
以下のコードを追加するとブラウザにエラーメッセージを表示してくれる
http://singoro.net/note/php-500error/
事例:
requireでhtmlで記述されたテンプレを読み込みに行った際、
phpで当てる箇所に<?= ?>の記述をしていた。
結果、の行がエラーで吐かれており、コード削除し、純粋にhtmlデータだけ残すと表示された!!
static
https://www.sejuku.net/blog/23753
https://qiita.com/suin/items/0897adc7dc653b9c20de
空の配列に対して要素の取得を行おうとすると、発生する本エラー
https://marycore.jp/prog/php/notice-undefined-offset/
配列の図解
http://html2php.starrypages.net/php/array-funcs