yId("dnsHelp").innerHTML = i18n(dnsInfo.helpHtml);
        document.getElementById(`index_${configIndex}`).textContent = getConfName(configIndex, e.target.value);

        dnsConf[configIndex].DnsName = e.target.value;
      });
    });

    // formDnsConf中的表单项值改变时，更新dnsConf
    document.querySelectorAll("#formDnsConf [name]").forEach($e => {
      const name = $e.getAttribute("name");
      // 判断对应input的类型
      switch ($e.getAttribute("type")) {
        case "checkbox