Alex Chen
Front-end & Node.js Developer
Giới thiệu
Alex is a front-end and Node.js developer with extensive experience building web applications and developer tooling. He is passionate about web standards, browser APIs, and the JavaScript ecosystem. In his spare time he contributes to open-source projects and writes about modern JavaScript patterns, performance optimisation, and everything related to the web platform.
Bài viết của Alex Chen
Định dạng JSON trong JavaScript bằng JSON.stringify(data, null, 2). Bao gồm replacer, BigInt, Date, file Node.js, CLI và fast-json-stringify.
Hướng dẫn đầy đủ giải mã Base64 trong JavaScript — atob(), Buffer.from(), URL-safe, JWT, và cách tránh 4 lỗi phổ biến làm hỏng văn bản UTF-8.
Mã hóa URL trong JavaScript với encodeURIComponent(), encodeURI() và URLSearchParams. Ví dụ Fetch API, thư viện qs, lỗi thường gặp và CLI. Node.js 10+.
Giải mã URL trong JavaScript với decodeURIComponent(), decodeURI() và URLSearchParams. Ví dụ thực tế, xử lý lỗi và lỗi thường gặp cần tránh.
Hướng dẫn đầy đủ về Base64 trong JavaScript: btoa(), Buffer.from(), Base64 URL-safe, xử lý Unicode, mã hóa file lớn và bốn lỗi phổ biến.