1.代碼javascript
function f(messages){
if(messages.length !== 1) {
throw new Error("Failed to find message in inbox " + emailAddress);
}
var emailSubject = messages[0].subject;
alert(emailSubject)
console.log(emailSubject)
if(emailSubject !== "Please activate your account") {
throw new Error("Email subject not match " + emailSubject);
}
var emailText = messages[0].html;
console.log(emailText)
console.log(emailText.match(reg))
var reg = /[0-9]{6}/;
var aa = emailText.match(reg)
console.log(aa)
return aa[0];
}
2.瀏覽器按F12圾亏,查看console
3.復(fù)制出來(lái)信息芽隆,保存為html文件它改,可以查看log委粉,既可以看到頁(yè)面展示