08 2016 档案
摘要:判断复选框哪一个被点击 <!DOCTYPE html> <html> <head> <script src="/jquery/jquery-1.11.1.min.js"> </script> <script> $(document).ready(function(){ $("button").cli
阅读全文
摘要:获取上一个页面的一个URL,这个URL一般做一个页面的跳转 window.location.href <script>window.location.href="http://www.baidu.com"</script> 获取一个页面的主机名 window.location.hostname 获取
阅读全文
摘要://全选,取消全选 $(document).on("click","#selection",function(){ if($(this).hasClass("selected")==false){ $(this).closest(".tablesWrap").find("input[type=che
阅读全文
摘要:$(function(){ //上移 var $up = $(".up") $up.click(function() { var $tr = $(this).parents("tr"); if ($tr.index() != 0) { $tr.fadeOut().fadeIn(); $tr.prev
阅读全文
摘要:通过监听父级容器下匹配子元素进行事件绑定 <div id="test1"><input type="button" class="btn" value="按钮1"/><input type="button" class="btn" value="按钮1"/><input type="button"
阅读全文

浙公网安备 33010602011771号