Detect when your site is visible to users
tipjs,web_developer
document.onvisibilitychange = function () {
document.visibilityState === "visible"
? (document.title = "👋 Hello")
: (document.title = "😟 Bye!");
};Có thể bạn đã miss một số snippets code
Extend Object javascript
Extend Object javascript
Getting the last element of a split string array
Getting the last element of a split string array
Ajax, call jQuery POST to node.js expressjs
Ajax, call jQuery POST to node.js expressjs
Hàm lày ngày trong tuần javascript
Hàm lày ngày trong tuần javascript
Filter Unique Values
Kiểu đối tượng Set đã được giới thiệu trong ES6 và cùng với ..., ‘spread’ operator, chúng ta có thể sử dụng nó để tạo một mảng mới chỉ với các giá trị duy nhất.