摘要: html5: 用于绘画的 canvas 元素 用于媒介回放的 video 和 audio 元素 对本地离线存储的更好的支持 新的特殊内容元素,比如 article、footer、header、nav、section 新的表单控件,比如 calendar、date、time、email、url、sea 阅读全文
posted @ 2017-03-18 16:27 有一个小白 阅读(15276) 评论(0) 推荐(1) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>九宫格</title> <meta http-equiv="content-Type" content="text/html;charset=utf-8"> </head> <body> <html> <head> <styl 阅读全文
posted @ 2017-03-18 16:21 有一个小白 阅读(982) 评论(0) 推荐(0) 编辑
摘要: 判断复选框哪一个被点击 <!DOCTYPE html> <html> <head> <script src="/jquery/jquery-1.11.1.min.js"> </script> <script> $(document).ready(function(){ $("button").cli 阅读全文
posted @ 2016-08-26 00:03 有一个小白 阅读(2855) 评论(0) 推荐(0) 编辑
摘要: 获取上一个页面的一个URL,这个URL一般做一个页面的跳转 window.location.href <script>window.location.href="http://www.baidu.com"</script> 获取一个页面的主机名 window.location.hostname 获取 阅读全文
posted @ 2016-08-25 23:58 有一个小白 阅读(9910) 评论(0) 推荐(0) 编辑
摘要: //全选,取消全选 $(document).on("click","#selection",function(){ if($(this).hasClass("selected")==false){ $(this).closest(".tablesWrap").find("input[type=che 阅读全文
posted @ 2016-08-25 23:51 有一个小白 阅读(2915) 评论(0) 推荐(0) 编辑
摘要: $(function(){ //上移 var $up = $(".up") $up.click(function() { var $tr = $(this).parents("tr"); if ($tr.index() != 0) { $tr.fadeOut().fadeIn(); $tr.prev 阅读全文
posted @ 2016-08-23 01:08 有一个小白 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 通过监听父级容器下匹配子元素进行事件绑定 <div id="test1"><input type="button" class="btn" value="按钮1"/><input type="button" class="btn" value="按钮1"/><input type="button"  阅读全文
posted @ 2016-08-23 01:07 有一个小白 阅读(1043) 评论(0) 推荐(0) 编辑