11 2021 档案
摘要:There are two async exection context: Microtask Queue - ASAP (Promises, MutationObserver) Macrotask Queue - DO Later (setTimeout, setInterval, request
阅读全文
摘要:lib.js import { parse, evaluate } from "groq-js" export let groq = async ([query]) => { let tree = parse(query) return async dataset => { let result =
阅读全文
摘要:const ary = [1, 2, 3, 4, 2, 3]; const unqiAry = (ary) => ary.filter((item, index) => ary.indexOf(item) index) unqiAry(ary) // [ 1, 2, 3, 4 ] const ary
阅读全文
摘要:S3 Usage Patterns S3 doesn't suit for following usecases: POSIX-compliant file system: should use EFS. POSIX -- refer to Linux or Unix files Structure
阅读全文
摘要:Z-index cannot be added to static position DOM element. All the DOM element by default is static position. So if you have to add z-index, you can add
阅读全文
摘要:let other = null console.log(other?.[0]) // undefined You can use optional chaining to access elements in an array. If the array is null or undefined,
阅读全文