我已将localhost更改为example.com,但是当我使用example.com时,我遇到了一些错误,但使用localhost时很好。 javascript出错。
错误:
url:'<?php echo base_url(); ?>/index.php/show1/show1' // If using example.com
url:'<?php echo base_url(); ?>/index.php/show1/show1' // Working in localhost/example
当我删除index.php时,它可以工作:
url:'<?php echo base_url(); ?>/show1/show1' // working in example.com
我正在使用codeignitier 任何人都可以帮助我,如何在没有删除index.php的javascript或建议的情况下使其工作?