$e.value = conf[name];
            break;
        }
      }
    }

    // 从json中重新加载配置
    function reloadConf(jsonConf) {
      try {
        dnsConf = JSON.parse(jsonConf);
        if (dnsConf.length === 0) {
          console.warn("dnsConf is empty, add defaultDnsConf");
          dnsConf.push({...defaultDnsConf});
        }
      } catch (e) {
        alert("error: " + e.toString());
        return;
      }

      // Reload all configs in dnsConf into index
      const $index = document.