callback for .trigger function

前端 未结 4 1158
北海茫月
北海茫月 2021-01-29 03:54

I have the following code:

 $(\"#scheduleLink\").trigger(\"click\");
 alert(\"text\")

This is the click handler:

$(\"#scheduleL         


        
4条回答
  •  半阙折子戏
    2021-01-29 04:32

    $("#publicationBlockContent").load"/Publication/EventSchedule?eventId=" + eventId + "&type=" + type,    
    function (responseText, textStatus, XMLHttpRequest) {     
    if (textStatus == "success") {          
    alert("success")
    }
     if (textStatus == "error") {
          alert("failed")
     }
    } 
    

提交回复
热议问题