Skip to content

健巳創作

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

  • Programing Startup
  • Game Play Reports
  • Contact

Javascript で 定数定義

2017年2月1日 健巳 JavaScript

定数定義の例と仕様例

const ArticleStatus = {
Memo: 1,
Public: 2,
Pendding:3
};

const OutputArea = {
Protected: ‘確認’,
Public: ‘公開’
};

if( input_status == EntryStatus.Public && input_output_area == OutputArea.Public ){
//….
}

開発メモ

投稿ナビゲーション

Previous Post:非同期Ajax通信
Next Post:PHPで擬似的に列挙体を作る
2025年8月
月 火 水 木 金 土 日
 123
45678910
11121314151617
18192021222324
25262728293031
« 7月    
WordPress Theme: Gridbox by ThemeZee.