简体   繁体   中英

Uncaught Reference Error: [...] is not defined

   function deleteTripEntry(tripEntryId) {
    var r = confirm("Do you want to Delete Entry...!");
    if (r == true) {
        $.post(contextApplicationPath
                + '/OutWardGoodsController/deleteTripEntry', {
            tripEntryId : tripEntryId
        }, function(data) {
            tripList();
            alert(data.MSG);
        }, 'json');
    }
}

Uncaught ReferenceError: contextApplicationPath is not defined at deleteTripEntry (:6729:10) at HTMLAnchorElement.onclick (VM475 login:1) deleteTripEntry @ VM472:6729 onclick @ VM475 login:1

Clearly, it says that contextApplicationPath is not defined. Try declaring the variable or try declaring it before defining deleteTripEntry function.

Since your question doesn't have much details, I cannot help further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM