2

我写了一个ajax方法

if(document.URL.indexOf('LID')!=-1)
{
 $.ajax
       ({
        type: "POST",
        url: "../DL/Lecture_List.aspx/GetTitle",
        data: '{LectureID:"'+document.URL.substring(document.URL.indexOf("=")+1)+'"}',
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: SuccessHandler
       });
       function SuccessHandler(data){
        var title = data.d;
        Add_anchor(title);
       }
}

此代码在 chrome 中运行良好,但在 mozilla firefox 反射错误中,

ReferenceError: SuccessHandler is not defined
4

0 回答 0