const url = new URL(url [, base]),There is a simple way to validate if an URL is valid in Javascript, no messy Regex needed.
確定! 回上一頁