随笔分类 -  jQuery

摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>垂直滚动</tit 阅读全文
posted @ 2020-08-14 13:41 宋健安 阅读(1321) 评论(0) 推荐(0)
摘要:原因是https页面去发送http请求报错(浏览器阻止https发送http请求) 解决方法:页面中的http换成https 阅读全文
posted @ 2020-06-22 16:09 宋健安 阅读(10020) 评论(0) 推荐(0)
摘要://当你在iframe页面关闭自身时 var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引 parent.layer.close(index); //再执行关闭 阅读全文
posted @ 2020-06-02 11:59 宋健安 阅读(1957) 评论(0) 推荐(0)
摘要:如在弹框中获取父级勾选的id var checkedArr = []; parent.window.$('input.checkboxItem[type="checkbox"]:checked').each(function (index, elem) { checkedArr.push($(ele 阅读全文
posted @ 2020-06-02 11:54 宋健安 阅读(3563) 评论(0) 推荐(0)
摘要:无滚动条的情况下(页面宽高比可视区域小):$(document)和$(window)的width、height方法获取的值都是一样的,都是可视区域的宽高即$(document).width()==$(window).width() $(document).height()==$(window).he 阅读全文
posted @ 2018-06-29 23:02 宋健安 阅读(289) 评论(0) 推荐(0)