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年7月
月 火 水 木 金 土 日
 123456
78910111213
14151617181920
21222324252627
28293031  
« 7月    
WordPress Theme: Gridbox by ThemeZee.