感覺可以參考:https://www.aisys.com.tw/web/tech/tech.php?question_id=174
這邊提供一個參考的做法,首先,將可能變動的設定都集中到一個檔案,假設是 config.js window.APP_CONFIG = { apiEndpoin...