If you require a naked domain the www can be removed using the replace() method. domain = domain.hostname.replace('www.',''); console.log(domain); ...
確定! 回上一頁