摘要: 目的:获取每一个多框的ID值;each方法:定义一个空数组,通过each方法,往数组添加ID值;最后将数组转换成字符串后,alert这个值;$(function(){ var arr = []; $(":checkbox").each(function(index){ arr.push(this.id); }); var str = arr.join(","); alert(str);})map方法:将每个:checkbox执行return this.id;并将这些返回值,自动的保存为jQuery对象,然后用get方法将其转换成原生Javascrip.. 阅读全文
posted @ 2012-05-08 11:36 o0Luffy0o 阅读(5315) 评论(1) 推荐(0) 编辑
摘要: <script type="text/javascript" src="jquery-1.5.1.min.js"></script><script type="text/javascript">$(function(){ var can = document.getElementById("can"); var ctx = can.getContext("2d"); ctx.beginPath(); ctx.arc(75,75,50,0,Math.PI*2,t 阅读全文
posted @ 2012-05-08 11:06 o0Luffy0o 阅读(5580) 评论(1) 推荐(2) 编辑
摘要: .curved_box { display: inline-block; *display: inline; width: 200px; height: 248px; margin: 20px; background-color: #fff; border: 1px solid #eee; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset; -moz-box-shadow: 0 1px 4px rgba(0, 0, 0,... 阅读全文
posted @ 2012-05-08 10:16 o0Luffy0o 阅读(777) 评论(1) 推荐(2) 编辑