How to parse URLs with pure JavaScript · function parse_url(url) { · var match = url.match(/^(http|https|ftp)?(?:[\:\/]*)([a-z0-9\.-]*)(?:\:([0-9]+))?(\/[^?#]*)?( ...
確定! 回上一頁