undefined value in javascript function
I have a parse function that is used to fetch data from backend.
parse : function(resp){
resp.id = resp.ID;
return resp;
},
and I want to use resp.id as a path to the url that is going to use in my
ajax post to then fetching data from that url. resp.id is a number. but
when I write the following, resp.ID is undefined in antoher function. I
also used this.respId but the value of it is undefined.
url: "/Api/v1", callAjaxPost : function{ url : this.url + "/resp.Id/List", }
No comments:
Post a Comment