🌈 搜索
📅  最后修改于: 2022-03-11 15:02:58.137000             🧑  作者: Mango
var myemail = 'test@yahoo.com' if (/@yahoo.com\s*$/.test(myemail)) { console.log("it ends in @yahoo"); }