开发者

JQuery Json Result Data Object. ASP.NET

开发者 https://www.devze.com 2023-03-28 22:20 出处:网络
I am calling an MVC action meth开发者_C百科od which returns data as a Json string. One Key has a value = \'5S\'

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

精彩评论

暂无评论...
验证码 换一张
取 消