我写了一个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 reflexing错误中
ReferenceError: SuccessHandler is not defined