获取域名

js获取

2.php获取

原文地址:https://www.cnblogs.com/xiaobiaomei/p/8674859.html