0
我使用codeigniter作为我的项目的框架。我试图从配置文件,该文件是Gzip在codeigniter中停止自动完成
$config['compress_output'] = TRUE;
gzip压缩我的文件,但是当我继续跟随varaiable为真,我的窗体的文本框的其中一个包括自动完成停止工作。 自动完成代码是这样
$(function() {
$("#textbox").autocomplete({
source: function(request, response) {
$.ajax({
url: baseurl + "home/auto_search",
data: { searchfor : $("#textbox").val()},
dataType: "json",
type: "POST",
success: function(data){
response(data);
}
});
},
minLength: 3,
}); });
这将返回输出,我可以看到萤火虫,但它不弹出效果。 而我必须通过这个压缩我的输出。