This commit is contained in:
icret
2023-04-12 15:30:49 +08:00
parent 9a3780a0ee
commit 55a7c2e51a
11 changed files with 51 additions and 8 deletions

View File

@@ -229,7 +229,7 @@ $('#btnLinks, #btnBbscode, #btnMarkDown, #btnHtml, #btnThumb, #btnDel').on('clic
var formData = new FormData();
formData.append('file', file);
formData.append('sign', new Date().format("YYYYMMddhh"));
formData.append('sign', Date.now());
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 1) {
@@ -299,6 +299,30 @@ $('#btnLinks, #btnBbscode, #btnMarkDown, #btnHtml, #btnThumb, #btnDel').on('clic
});
})();
// 检测浏览器是否支持cookie
if (navigator.cookieEnabled === false) {
new $.zui.Messager('浏览器不支持cookie, 无法保存登录信息', {
type: 'black',
icon: 'bell',
time: 4500,
placement: 'top'
}).show();
console.log('浏览器不支持cookie');
}
// 检测浏览器是否支持本地存储
if ($.zui.store.enable === false) {
new $.zui.Messager('浏览器不支持本地存储, 无法保存上传历史记录', {
icon: 'bell',
time: 4000,
type: 'primary',
placement: 'top'
}).show();
console.log('浏览器不支持本地存储');
}
/**
* javascript parseUrl函数解析url获取网址url参数
* https://www.cnblogs.com/lazb/p/10144471.html