日期:2014-05-16  浏览次数:20680 次

AJAX实现二级联动问题
本帖最后由 showbo 于 2013-08-10 13:46:24 编辑
现在需要做一个下拉列表二级联动,但调用AJAX总是出错,希望大家帮忙看看。
脚本
$.ajax
                    (
                        {
                            type: "post",
                            url: urlAdd,
                            dataType: "jeson",  //传输的数据类型
                            contentType: "application/json",
                            data: '{"state":"' + val + '"}',
                            error: function (x, e) {
                                alert(x.responseText);
                                return false;
                            },
                            success: function (data) {
                                alert("OK");
                                var i;
                                var json = eval(data);