I am calling an MVC action meth开发者_C百科od which returns data as a Json string. One Key has a value = '5S' I cannot access this using the following data.5S because it does not like a alphanumeric values that start with a number. Is there a way to access the key/value pair without referencing a key name? I need the key value and the value also. I need to get both back. Can O do something like var myvalue1 = data[i][0] ; myvalue2 = data[i][1]
Here is my call to the action method
$.get('/Home/GetTypes', function (data) {
alert(data.KAIZ);
});
精彩评论