邮件自定义的下拉提示

 

 

 queryEmail(queryString, callback) {
let emails = [
        "163.com",
        "126.com",
        "263.net",
        "qq.com",
        "yahoo.com",
        "gmail.com",
        "hotmail.com"
      ];
       let list = new Array()
    let a = queryString.split("@")
    for (const index in emails) {
        const email = a[0] + '@' + emails[index]
        if (0 === email.indexOf(queryString)) {
            list.push({
                value: email
            })
        }
    }
    callback(list)
}

相关文章:

  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-12-06
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
相关资源
相似解决方案