delete console
This commit is contained in:
parent
01bc5af076
commit
6af5beb990
|
|
@ -208,7 +208,6 @@
|
||||||
|
|
||||||
|
|
||||||
function isValidDomain(domain) {
|
function isValidDomain(domain) {
|
||||||
console.log(domain);
|
|
||||||
var pattern = /^(?!:\/\/)([a-z0-9-]+\.)*[a-z0-9-]+\.[a-z]{2,11}$/;
|
var pattern = /^(?!:\/\/)([a-z0-9-]+\.)*[a-z0-9-]+\.[a-z]{2,11}$/;
|
||||||
return pattern.test(domain);
|
return pattern.test(domain);
|
||||||
}
|
}
|
||||||
|
|
@ -245,10 +244,8 @@ function fetchMail() {
|
||||||
}
|
}
|
||||||
$.each(response.data.list, function (k, v) {
|
$.each(response.data.list, function (k, v) {
|
||||||
let temp_html = '<tr><td>' + v.from + '</td><td>' + v.title + '</td><td>' + dateFmt(v.received_at) + '</td><td><button class="btn btn-primary info-btn btn-sm" data-key="' + v.key + '" type="button">查看</button></td></tr>';
|
let temp_html = '<tr><td>' + v.from + '</td><td>' + v.title + '</td><td>' + dateFmt(v.received_at) + '</td><td><button class="btn btn-primary info-btn btn-sm" data-key="' + v.key + '" type="button">查看</button></td></tr>';
|
||||||
console.log(temp_html);
|
|
||||||
$('#default-note').parent().append(temp_html);
|
$('#default-note').parent().append(temp_html);
|
||||||
})
|
})
|
||||||
console.log('请求成功:', response);
|
|
||||||
// 在这里处理你的响应数据
|
// 在这里处理你的响应数据
|
||||||
},
|
},
|
||||||
error: function (xhr, status, error) {
|
error: function (xhr, status, error) {
|
||||||
|
|
@ -258,8 +255,6 @@ function fetchMail() {
|
||||||
isRequestPending = false;
|
isRequestPending = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
console.log('上一个请求还未完成,跳过这次请求');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -375,7 +370,6 @@ function fetchMail() {
|
||||||
|
|
||||||
$('#myModal').on('shown.bs.modal', function () {
|
$('#myModal').on('shown.bs.modal', function () {
|
||||||
let iframeHeight = $('#modalIframe').contents().find("html").height();
|
let iframeHeight = $('#modalIframe').contents().find("html").height();
|
||||||
console.log("Iframe的实际高度是: " + iframeHeight + "px");
|
|
||||||
if (iframeHeight <= 600){
|
if (iframeHeight <= 600){
|
||||||
$('#modalIframe').css('height',600);
|
$('#modalIframe').css('height',600);
|
||||||
} else if (iframeHeight >= 800){
|
} else if (iframeHeight >= 800){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user