邮件自定义的下拉提示
时间:2020-08-05 14:15:32
收藏:0
阅读:80

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)
}
原文:https://www.cnblogs.com/zmdblog/p/13439162.html
评论(0)