日期:2014-05-17 浏览次数:20337 次
<script type="text/javascript"> var data = { "s1.jpg": ["1.jpg", "Lili", "168", "nurse"], "s2.jpg": ["2.jpg", "Smith", "170", "Teacher"] }; function showSmallDiv() { var imgDiv = document.getElementById("imgDiv"); for (var itme in data) { alert(item); } } </script>
var data = { "s1.jpg": ["1.jpg", "Lili", "168", "nurse"], "s2.jpg": ["2.jpg", "Smith", "170", "Teacher"] }; for (var item in data) { alert(item); }