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年9月
月 火 水 木 金 土 日
1234567
891011121314
15161718192021
22232425262728
2930  
« 7月    
WordPress Theme: Gridbox by ThemeZee.