老师,为什么我的二级菜单出不来啊

来源:8-2 商户入驻申请-数据准备(下)

慕粉4304192

2017-05-21

http://szimg.mukewang.com/5921508a0001258906270101.jpg 

就是点了没反应啊,我照着打的,应该没错啊。应该是一模一样的。

$(".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,把文件发给老师帮我看看


写回答

2回答

singwa

2017-05-21

您好遇到这种问题,先在PHP程序你快打断点,看看PHP层 输出的数据是什么。一步一步的来看看

0
2
慕粉4304192
非常感谢!
2017-05-21
共2条回复

慕粉4304192

提问者

2017-05-21

//szimg.mukewang.com/59214eae0001258906270101.jpg这是什么意思啊

0
1
singwa
定位到response 看看接口返回什么内容
2017-05-21
共1条回复

Thinkphp5.0仿百度糯米开发多商家电商平台

【毕设】BAT大牛亲授ThinkPHP 5.0,实战中学透新技能,应用于工作

2439 学习 · 1712 问题

查看课程