下記を参考にした! http://tech.gmo-media.jp/post/134050026034/check-none-https-resouce-loading
Read morePHPで擬似的に列挙体を作る
/** * 汎用Enumクラス */ abstract class Enum { protected $scalar; function __construct($value) { $ref = new R
Read moreJavascript で 定数定義
定数定義の例と仕様例 const ArticleStatus = { Memo: 1, Public: 2, Pendding:3 }; const OutputArea = { Protected: ‘確認
Read more非同期Ajax通信
オプションにasync: falseを付ける jQuery.ajax({ type: ‘POST’, url: request_url, async: false }).done(function
Read moreURL変数を取得
/** * URL変数を取得する */ function getUrlVars( url ) { //URL変数がない場合 if ( !url.indexOf( ‘?’ )) { return n
Read moreJSONデータを文字列に変換
JSON.stringify(data, null, 2)
Read more現在の時間を文字列で取得
/* * 現在の時間を文字列で取得 */ function getTime(){ tmp = new Date(); return tmp.getFullYear()+’-‘+(tmp.getMo
Read more