日期:2014-05-17  浏览次数:20413 次

jquery ajax 为什么没执行......................................................新手在线求解

$(".titleBack").each(function () {
                $(this).bind("click", function () {
                    
                    var titleId = $(this).attr('id');
                    $.ajax({
                        type: "post",
                        url: "../CallingPage/titleBackColorCalling.aspx?iTitle='" + titleId + "'",
                        data: null,
                        datatype: "json"
                    });
                });
            });
            

            $(".format").each(function () {
                $(this).bind("click", function () {
                    
                    var formatId = $(this).attr('id');
                    $.ajax({
                        type: "post",
                        url: "../CallingPage/reviseFormatCalling.aspx?formatName='" + formatId + "'",
                        data: null,
                        datatype: "json"
                    });
                });
            });

titleBack 和 format 是<a>的class属性
为什么 format 执行了
titleBack 没有执行titleBackColorCalling.aspx页面


------最佳解决方案--------------------
如果路径都没问题的话,请检查 titleBackColorCalling 名称和aspx.cs的命名