这是我的代码使用zendFramwork1.2
$("#cboCateMain1").change(function(){
var id=$(this).val();
var dataString = 'catmainid='+ id;
$.ajax({
type: "GET",
url: "<?php echo $this->baseUrl ();?>/<?php echo $this->translate('lang')?>/<?php echo $this->controller?>/catemainindex",
data: dataString,
dataType: 'json',
cache: false,
contentType: "application/json;charset=utf-8",
beforeSend: function() {
},
timeout: 1000000,
error:function(xhr, status, error) {
alert('Error: Message->'+ xhr.status+ ' - >'+ error+"->"+xhr);
},
success: function(data){
alert(data);
}
});
});
但是我遇到了错误!
有问题的任何想法!我很快就会找到你的答复。谢谢