2024年07月29日
function base64Encode (str) {
return btoa(encodeURIComponent(str));
}
function base64Decode (str) {
return decodeURIComponent(atob(str));
}
var b = base64Encode('web建站入门教程');
var a = base64Decode(b);
console.log('b
2024年07月29日
function twoTimeInterval(startTime, endTime) {
// 开始时间
let d1 = startTime.replace(/\-/g, "/");
let date1 = new Date(d1);
// 结束时间
let d2 = endTime.replace(/\-/g, "/");
let date2 = new Date(d2);