上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 34 下一页
摘要: 1,循环添加内容 var html = ""; $.each(data.data, function(k, v) { html += '<div class="swiper-slide"><a href="javascript:;" data-name="' + v.name + '" data-s 阅读全文
posted @ 2020-07-03 16:12 琥珀君 阅读(4326) 评论(0) 推荐(0)
摘要: 1,获取url中指定的参数 //获取url中指定参数 function getParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var URL = decodeURI(window.location.searc 阅读全文
posted @ 2020-07-03 15:20 琥珀君 阅读(228) 评论(0) 推荐(0)
摘要: 1, <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script type="text/javascript"> wx.ready(function() { wx.hideMenuItems({ menu 阅读全文
posted @ 2020-07-03 15:07 琥珀君 阅读(267) 评论(0) 推荐(0)
摘要: js是一门弱语言,它在声明变量时无需确定变量的类型,js在运行时会自动判断。那么如何判断一个变量的类型呢,js提供了typeof运算符,用来检测一个变量的类型。 1. typeof的语法 typeof是一个运算符,有2种使用方式:typeof(表达式)和typeof 变量名,第一种是对表达式做运算, 阅读全文
posted @ 2020-07-01 15:14 琥珀君 阅读(182) 评论(0) 推荐(0)
摘要: 1,加入到集合中去 //定义变量var config = {}; // 加入集合 for (var i in obj) { config[i] = obj[i]; } // 调用 config['width'] 2,传入的键值对数据 var media = new VideoF().init({ / 阅读全文
posted @ 2020-07-01 14:47 琥珀君 阅读(848) 评论(0) 推荐(0)
摘要: 1,如果是顶层DIV ,要保持宽度和高度一致 可以直接定义宽度的尺寸为 10vw, 高度的尺寸也是 10vw,而不是10vh。 2,对不是顶层DIV,如何保持DIV 的宽度和高度一致: .iframe span { position: absolute; z-index: 2; top: 2%; l 阅读全文
posted @ 2020-06-30 11:21 琥珀君 阅读(911) 评论(0) 推荐(0)
摘要: 1,网址地址:https://dummyimage.com/ 示例1: https://dummyimage.com/400x300/ff3ff3&text=welcome! 400x300 : 为图片大小 ff3ff3 : 为图片颜色 &text=welcome! : & 后面为图片上的文字 ht 阅读全文
posted @ 2020-06-30 11:13 琥珀君 阅读(498) 评论(0) 推荐(0)
摘要: .iframe { width: 70%; height: 80%; top: 50%; left: 50%; transform: translate(-50%, -50%); position: fixed; z-index: 999; display: none; } 阅读全文
posted @ 2020-06-29 15:56 琥珀君 阅读(126) 评论(0) 推荐(0)
摘要: 1,box-sizing:border-box; 属性 div.container { width:30em; border:1em solid green; } div.box { box-sizing:border-box; -moz-box-sizing:border-box; /* Fire 阅读全文
posted @ 2020-06-29 15:21 琥珀君 阅读(441) 评论(0) 推荐(0)
摘要: 1,用jpg png 写法: <link rel="icon" type="image/png" sizes="32x32" href="images/icons/favicon.png" class="keep"> 通常的写法: <link rel="shortcut icon" href="im 阅读全文
posted @ 2020-06-29 14:53 琥珀君 阅读(225) 评论(0) 推荐(0)
摘要: 去掉页面滚动条: overflow: hidden; body, html { width: 100%; height: 100%; overflow: hidden; } 禁止页面双击缩放大小: <!-- 禁止双击缩放 --> <meta content="width=device-width, 阅读全文
posted @ 2020-06-27 16:50 琥珀君 阅读(234) 评论(0) 推荐(0)
摘要: 1,谷歌浏览器禁用视频自动播放,原因是有声音 解决办法: video增加muted属性 增加这个muted属性可使视频自动播放 同时也屏蔽掉了声音 <video class="pic-img" muted loop="loop" autoplay="autoplay" src="./videos/i 阅读全文
posted @ 2020-06-27 16:19 琥珀君 阅读(702) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-06-17 15:34 琥珀君 阅读(8) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-06-11 14:48 琥珀君 阅读(0) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-06-05 16:12 琥珀君 阅读(0) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-06-05 14:00 琥珀君 阅读(0) 评论(0) 推荐(0)
摘要: 新建一个reg文件,内容如下: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Sublime3] @="Sublime3 Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\Sublime3\ 阅读全文
posted @ 2020-06-04 16:58 琥珀君 阅读(197) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-30 12:20 琥珀君 阅读(0) 评论(0) 推荐(0)
摘要: 远程thinkphp代码: 更新漏洞后代码: // 获取控制器名 $controller = strip_tags($result[1] ?: $config['default_controller']); if (!preg_match('/^[A-Za-z](\w)*$/', $controll 阅读全文
posted @ 2020-05-28 14:16 琥珀君 阅读(85) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 34 下一页