摘要: HTML:<h3>对象数组显示</h3><table id="obj" border="1"> </table>jquery:var animals = [ { 'name':'dog', 'mouse':'wangwang..' }, { 'name':'cat', 'mous... 阅读全文
posted @ 2012-08-21 09:25 蚊子吃青蛙 阅读(10405) 评论(0) 推荐(0) 编辑
摘要: HTML: <h3>原始数组</h3> <div id="show5"></div> <h3>原数组的一部分</h3> <div id="show6"></div> <h3>原数组的剩下一部分</h3> <div id="show7"></div>Jquery:var animals = ['dog','cat','tiger','pig 阅读全文
posted @ 2012-08-21 09:10 蚊子吃青蛙 阅读(11709) 评论(0) 推荐(0) 编辑
摘要: HTML:View Code 1 <h3>字符串数组排序前</h3>2 <div id="show5"></div>3 <h3>排序后</h3>4 <div id="show6"></div>jquery:View Code var animals = ['dog','cat','tiger','pig','bird'];$('#show5').html(anima 阅读全文
posted @ 2012-08-21 08:53 蚊子吃青蛙 阅读(47136) 评论(3) 推荐(1) 编辑