![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端-jquery
黎成诃月
不辜负每一份热情,不讨好任何冷漠。
展开
-
获取验证码倒计时--
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https:/...原创 2020-04-21 09:55:12 · 191 阅读 · 0 评论 -
安卓手机键盘高度适配 fixed谈起bug
/** * 键盘高度适配 */ function fixedKeyboard() { var client_h = document.documentElement.clientHeight; $(window).on("resize",function(){ if (/iphone|ipad/i.tes...原创 2019-10-17 11:33:32 · 345 阅读 · 0 评论 -
js页面弹出框,遮罩层底部的页面不滑动
//html //css <body class="modal_open" style="-200px" > <body>.modal_open { position: fixed; width: 100%; height: 100%; overflow: hidden;}全局——————————————————————————...原创 2019-10-14 10:35:39 · 652 阅读 · 0 评论 -
网页底部固定的几种方式
####1,判断高度function footerAuto() { var _wh = $(window).height(); var _dh = $(document).height(); var _bh = $(document.body).height(); if (_bh < _wh) { $("#footer").css({ position: ...原创 2018-04-10 18:54:39 · 3265 阅读 · 0 评论 -
js中的事件委托或是事件代理详解
起因:1、这是前端面试的经典题型,要去找工作的小伙伴看看还是有帮助的;2、其实我一直都没弄明白,写这个一是为了备忘,二是给其他的知其然不知其所以然的小伙伴们以参考;概述:那什么叫事件委托呢?它还有一个名字叫事件代理,JavaScript高级程序设计上讲:事件委托就是利用事件冒泡,只指定一个事件处理程序,就可以管理某一类型的所有事件。那这是什么意思呢?网上的各位大牛们讲事件委托基本上都用了同一个例子...翻译 2018-06-25 11:36:51 · 83 阅读 · 0 评论 -
js表单提交数组
// 批量购买(数组) $('#batch_buy').on('click', function() { var gids = []; $('.table .checkbox').each(function() { if ($(this).prop('checked')) { ...原创 2019-01-04 10:55:53 · 5021 阅读 · 0 评论