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
Converting Object to an Array
Converting Object to an Array
encode/decode base64 with JS
Encoding to base64 is done with the btoa command
Ajax, call jQuery POST to node.js expressjs
Ajax, call jQuery POST to node.js expressjs
Random String
Random String với độ dài tuỳ chọn
flatMap()
Use flatMap() creates a new array with sub-array elements flattened by specified depth.