我使用一个返回数组的config.php文件。在发布项目之前,我通常会手动更改在文件中开发时使用的“apiKey”值。然后我就可以对我的部署脚本进行修改了。<?php// Comments with instruction exist throughout the file. They must remain.'apiKey' => 'ecuhi36
我一直在使用以下jquery检查页面是否为index.php .<script> if(window.location.href == "www.mydomain.com/index.php'This is the homepage'); });一切都很好,但我现在已经引入了一个.htaccess文件,以摆脱像这样的文件中的.php