随笔分类 -  JQ网站常用方法

摘要:$("你需要自动触发的按钮").trigger("事件名称,比如:click"); <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>测试</title> <script src="https://cdn.bo 阅读全文
posted @ 2021-02-05 17:47 夏小夏吖 阅读(322) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-06-17 10:54 夏小夏吖 阅读(114) 评论(0) 推荐(0)
摘要:就像这种情况,经过多番请教跟尝试,找到一个能解决这个问题的方法,但可能有点笨重。就是在当前弹框里,设置offset的值,里边的值可以随意写,然后再下边给弹框追加一个样式即可。 阅读全文
posted @ 2019-09-19 14:13 夏小夏吖 阅读(857) 评论(0) 推荐(2)
摘要:参考网址: https://www.cnblogs.com/pingfan1990/p/5447404.html https://www.cnblogs.com/liangshaojiang/p/9013912.html 此段代码过于灵敏~不推荐使用 阅读全文
posted @ 2019-09-09 15:57 夏小夏吖 阅读(877) 评论(0) 推荐(0)
摘要:JQ简单点赞功能 89 ❤ 阅读全文
posted @ 2019-07-04 11:52 夏小夏吖 阅读(707) 评论(0) 推荐(0)
摘要:document.body.addEventListener("focusout", () => { //软键盘收起的事件处理 setTimeout(() => { const scrollHeight = document.documentElement.scrollTop || document 阅读全文
posted @ 2019-06-10 09:23 夏小夏吖 阅读(286) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-04-18 18:26 夏小夏吖 阅读(268) 评论(0) 推荐(0)
摘要:在页面末尾加入这句话即可 阅读全文
posted @ 2019-04-11 14:22 夏小夏吖 阅读(5026) 评论(0) 推荐(0)
摘要:距离二维码过期还剩秒,过期后自动刷新页面。 阅读全文
posted @ 2019-04-02 11:08 夏小夏吖 阅读(203) 评论(0) 推荐(0)
摘要:JQ动画 点击▶ ▼ 一、JQ鼠标事件 1.click()事件; 2.dbclick事件;(表单验证、全选、反选) 3.focusin();获取焦点事件,可作用于父级 ... 阅读全文
posted @ 2019-01-04 16:50 夏小夏吖 阅读(1537) 评论(0) 推荐(0)
摘要:<div class="box">我们定位于中国心理行业第一<div> $(".box").html($(".box").html().replace(/定位于/,"致力于")); // 将.box中的内容中的定位于替换成致力于 阅读全文
posted @ 2017-11-23 11:03 夏小夏吖 阅读(2588) 评论(0) 推荐(0)
摘要:如图,我要拼接这样一段html: 点击下边添加按钮,不断添加这段Html 阅读全文
posted @ 2017-11-15 12:12 夏小夏吖 阅读(24703) 评论(0) 推荐(0)
摘要:地址:北京师范 阅读全文
posted @ 2017-08-04 17:48 夏小夏吖 阅读(938) 评论(0) 推荐(0)
摘要:<script> if (screen.width < 768) {} </script> 阅读全文
posted @ 2016-09-22 11:06 夏小夏吖 阅读(3219) 评论(0) 推荐(0)
摘要:这个我还没用过,但感觉以后会用到,就随手摘抄一下啦 //引入jQuery.js 阅读全文
posted @ 2016-09-22 11:04 夏小夏吖 阅读(3341) 评论(0) 推荐(1)