1.js获取域名的方法 1) var domain = document.domain 2) var domain = window.location.host 2.获取url的方法 1) var url = window.location.href 2) var url = self.location.href 3) var url = document.URL 4) var url = document.location 3.获取url中指定参数值 function getParams(na