M_test.ts 636 B

123456789101112131415161718192021222324
  1. // ID:参数编号, xxx:中文, ttt:英文
  2. export default class M_test {
  3. private static data =
  4. {"10002":{"ID":"10002","xxx":"今日剩余次数:#&0次","ttt":"Remaining times today: #&0 times"}
  5. ,"10003":{"ID":"10003","xxx":"魔法转盘","ttt":"Magic Carousel"}
  6. ,"10004":{"ID":"10004","xxx":"神秘事务司","ttt":"Division of Mystery Affairs"}
  7. }// ID:参数编号, xxx:中文, ttt:英文
  8. static getData(key: any): any {
  9. if (key == null || key == undefined)
  10. return null;
  11. return this.data[key];
  12. }
  13. static getAllData(): any {
  14. return this.data;
  15. }
  16. }