就是点了没反应啊,我照着打的,应该没错啊。应该是一模一样的。
$(".cityId").change(function(){
city_id = $(this).val();
// 抛送请求
url = SCOPE.city_url;
postData = {'id':city_id};
$.post(url,postData,function(result){
//相关的业务处理
if(result.status == 1) {
// 将信息填充到html中
data = result.data;
city_html = "";
$(data).each(
function(i){
city_html += "<option value='"+this.id+"'>"+this.name+"</option>";
});
$('.se_city_id').html(city_html);
}else if(result.status == 0) {
$('.se_city_id').html('');
}
}, 'json');
});
能不能加老师QQ,把文件发给老师帮我看看