改名的安装的目录,获取的域名也错了 当安装名字有 install 时候,获取到域名会替换, 当安装目录名为其他,获取域名目录含安装目录 install/index.php <div class="form-group"> <label for="">安装域名(默认<strong>不需要修改</strong>. 除非特殊要求)</label> <input type="text" name="www" id="www" class="form-control" value=""> </div> <script> document.getElementById("www").value = window.location.href.replace('/install/','').replace('/install',''); </script>
|