摘要: a b c 投票 function toVote(){ var voteList = []; $('input:checkbox').each(function(){ if($(this).is(':checked')==true){ voteList.pus... 阅读全文
posted @ 2019-03-07 14:45 Fourteen 阅读(4164) 评论(0) 推荐(0) 编辑
摘要: 1.append() jq方法,在被选元素的结尾(仍然在内部)插入指定内容。 2.appendChild() js方法 3.prepend() jq方法,在被选元素的开头(仍位于内部)插入指定内容。 <table id="dataList"></table> <script> var trHtml_ 阅读全文
posted @ 2019-03-07 10:30 Fourteen 阅读(3771) 评论(0) 推荐(0) 编辑
摘要: var testObj = { 'a':'111', 'b':'222', 'c':'333', 'd':'444'}for(var i in testObj){ console.log(i); //a,b,c,d}for(var i in testObj){ console.log(testObj 阅读全文
posted @ 2019-03-07 10:09 Fourteen 阅读(19912) 评论(0) 推荐(0) 编辑