Lấy ngày hiện tại trong javascript
date,tipjs,function
Lấy ngày hiện tại trong javascript
const getDay = (fillFlag=true) => {
const day = new Date().getDate()
const dayRe = day
if (fillFlag) day < 10 ? `0${day}` : day
return dayRe
}
//Ouput:
console.log(getDay());//27Có thể bạn đã miss một số snippets code
Object.keys và Object.getOwnPropertyNames
Object.keys và Object.getOwnPropertyNames
Ajax, call jQuery POST to node.js expressjs
Ajax, call jQuery POST to node.js expressjs
encode/decode base64 with JS
Encoding to base64 is done with the btoa command
Làm phẳng mảng dùng phương pháp đệ quy
Làm phẳng mảng dùng phương pháp đệ quy
Hàm lày ngày trong tuần javascript
Hàm lày ngày trong tuần javascript