Skip to content

健巳創作

プログラミングのネタを中心に気ままに更新しています

  • Programing Startup
  • Game Play Reports
  • Contact

タグ: 便利関数

非同期Ajax通信

2017年2月1日 健巳 JavaScript

オプションにasync: falseを付ける jQuery.ajax({ type: ‘POST’, url: request_url, async: false }).done(function

Read more

URL変数を取得

2017年2月1日 健巳 JavaScript

/** * URL変数を取得する */ function getUrlVars( url ) { //URL変数がない場合 if ( !url.indexOf( ‘?’ )) { return n

Read more

JSONデータを文字列に変換

2017年2月1日 健巳 JavaScript

JSON.stringify(data, null, 2)

Read more

現在の時間を文字列で取得

2017年2月1日 健巳 JavaScript

/* * 現在の時間を文字列で取得 */ function getTime(){ tmp = new Date(); return tmp.getFullYear()+’-‘+(tmp.getMo

Read more
WordPress Theme: Gridbox by ThemeZee.