Uncaugt参考错误

时间:2018-02-24 08:01:59

标签: javascript

   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');
    }
}

未捕获的ReferenceError:未定义contextApplicationPath     在deleteTripEntry(:6729:10)     在HTMLAnchorElement.onclick(VM475登录:1) deleteTripEntry @ VM472:6729 onclick @ VM475登录:1

1 个答案:

答案 0 :(得分:0)

显然,它表示contextApplicationPath未定义。尝试声明变量或尝试在定义deleteTripEntry函数之前声明它。

由于你的问题没有太多细节,我无法进一步帮助。