jquery中的jquery multidimenstional数组 [英] jquery multidimenstional array in jquery
本文介绍了jquery中的jquery multidimenstional数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好......
i有一个数组如下
hello there...
i have an array as follows
var data = '[{"Date":"3/5/2014 12:00:00 AM","DataValue":48.1380920410156},{"Date":"3/8/2014 12:00:00 AM","DataValue":0.0000000000000000000399998436},{"Date":"3/6/2014 12:00:00 AM","DataValue":0.0000000000000000000399998436},{"Date":"3/7/2014 12:00:00 AM","DataValue":0.0000000000000000000399998436},{"Date":"3/4/2014 12:00:00 AM","DataValue":0.0000000000000000000399998436}]';
我需要访问jquery中的每个元素
and i need to access each element in jquery
$.each(data, function (index, item) {
alert(item.Date);
});
但它无法正常工作。
plz help我
but it's not working properly.
plz help me
推荐答案
.each(data,function(index,item){
alert(item.Date);
});
.each(data, function (index, item) { alert(item.Date); });
但是它无法正常工作。
plz帮助我
but it's not working properly.
plz help me
>
这篇关于jquery中的jquery multidimenstional数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文