关于php ci框架ie浏览器路径问题

ie不能定位到这个location,而是在地址栏形成类似eg.com/index.php/class/class/class/fucntion (支持应该为eg.com/index.php/class/fucntion这样的路径

解决方法:

那么阁下完全可以给函数再增加一个参数,如下:

function gogame(str, url)
{
    window.location.href=url;  
}

然后在使用的时候,给它添加一个参数即可:

<a href="javascript:void(0);" onclik="gogame('str', '<?php echo base_url("class/function");?>')">点击</a>

原文地址:https://www.cnblogs.com/peng14/p/3659176.html