解码64-ATOB空

时间:2019-03-06 20:25:33

标签: javascript html

此脚本正在运行,但是如果没有电子邮件值,它将用ée填充输入。我该如何解决?

document.addEventListener("DOMContentLoaded", function(event) {
  var email = getParameterByName('email');
  document.getElementById('email-assinante').value = "";
  if (email != "") {
    var dec = atob(email);
    document.getElementById('email-assinante').value = dec;
  } else {
    document.getElementById('email-assinante').value = "";
  }
});

0 个答案:

没有答案