X

Javascript で 定数定義

定数定義の例と仕様例

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

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

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

健巳:
Related Post