我在Windows 7上运行xampp.当我这样做时http://localhost,我在我的网络浏览器中获得了xampp欢迎屏幕,但是http://127.0.0.1无效.在我的Windows主机文件中,我已取消注释127.0.0.1 localhost但问题仍然存在.我已经检查过防火墙是否阻挡了什么,但仍然没有好结果.
我该如何解决这个问题.
我有一个名为Designer的函数,如果location.hash等于isDesign,我想返回此函数.我试过以下......
function Designer() {
$("#boxA").fadeIn(700);
$("#boxA span#closeControl").on("click",function(){
$("#builderBox").fadeOut(700);
});
}
if (location.hash = "isDesign") {
return Designer();
}
Run Code Online (Sandbox Code Playgroud)
它不是执行函数,而是将isDesign哈希值分配给url并重新加载页面几次.请问,我该怎么做才能纠正这个问题.所有答案将不胜感激.谢谢.