上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页

2019年8月20日

jq判断元素滚动到底部和顶部

摘要: $("#my").scroll(function(){ var scrollTop = $(this).scrollTop(); var ks_area = $(this).innerHeight(); var nScrollHight = 0; //滚动距离总长(注意不是滚动条的长度) nScro 阅读全文

posted @ 2019-08-20 10:30 Just丶随心 阅读(4135) 评论(0) 推荐(0) 编辑

2019年8月9日

两列流式布局CSS

摘要: .a{/* width: 200px;;*/ height:auto; background: #2A4175; border-radius: 4px; /*margin-top: 10px;*//* float: left;*//* margin-left: 2%;*/ box-sizing: b 阅读全文

posted @ 2019-08-09 10:07 Just丶随心 阅读(600) 评论(0) 推荐(0) 编辑

2019年5月31日

微信公众号调取扫码

摘要: 1 <!--引用微信JS库--> <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> <!--引用jQuery库--> <script type="text/java 阅读全文

posted @ 2019-05-31 11:50 Just丶随心 阅读(3568) 评论(0) 推荐(0) 编辑

2019年5月18日

网页分享朋友圈

摘要: 引入JS <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> 分享代码 var url = location.href; var timestamp=""; var 阅读全文

posted @ 2019-05-18 11:24 Just丶随心 阅读(549) 评论(0) 推荐(0) 编辑

2019年5月16日

手机端fixed底部跟着窗口动问题

摘要: var windowInnerHeight = window.innerHeight; //获取当前浏览器窗口高度$(window).resize(function(){ if(window.innerHeight < windowInnerHeight){ $('#foot').hide(); } 阅读全文

posted @ 2019-05-16 15:22 Just丶随心 阅读(415) 评论(0) 推荐(0) 编辑

2019年5月5日

JS截取链接上的参数

摘要: function GetUrlParam(paraName) { var url = document.location.toString(); var arrObj = url.split("?"); if (arrObj.length > 1) { var arrPara = arrObj[1] 阅读全文

posted @ 2019-05-05 11:51 Just丶随心 阅读(1508) 评论(0) 推荐(0) 编辑

2019年4月28日

JS生成二维码

摘要: 使用jquery.qrcode生成二维码 1、首先在页面中加入jquery库文件和qrcode插件 <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery. 阅读全文

posted @ 2019-04-28 10:32 Just丶随心 阅读(3817) 评论(0) 推荐(0) 编辑

2019年4月16日

微信浏览器内调取扫一扫

摘要: 先引入微信的JS wx.scanQRCode({ needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, scanType: ["qrCode"], // 可以指定扫二维码还是一维码,默认二者都有 success: function (res) { var resu 阅读全文

posted @ 2019-04-16 13:42 Just丶随心 阅读(131) 评论(0) 推荐(0) 编辑

2019年4月2日

微信小程序获取二维码参数

摘要: var scene = decodeURIComponent(options.scene) 阅读全文

posted @ 2019-04-02 10:17 Just丶随心 阅读(3269) 评论(0) 推荐(0) 编辑

2019年3月19日

微信小程序超出两行省略号

摘要: display: -webkit-box; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; white-space: normal !important; -webkit-line-clamp: 2; -webkit 阅读全文

posted @ 2019-03-19 09:01 Just丶随心 阅读(5363) 评论(0) 推荐(1) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页

导航