- 博客(7)
- 资源 (1)
- 收藏
- 关注
转载 //设置month月前的时间 var y = time.getFullYear();
function GetMonth(month) {var time = new Date();time.setMonth(time.getMonth() - month);//设置month月前的时间var y = time.getFullYear();var m = time.getMonth() + 1;//获取当前月份var d = time.getDate();return ...
2019-04-15 15:45:16 456
转载 iphoneX兼容之自定义底部菜单
在你要编写的底部菜单中插入 样式 padding-bottom: calc(env(safe-area-inset-bottom) / 2) 即可兼容例如:css中插入@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {.fixed-wrap {...
2019-04-11 10:10:09 645
转载 //返回刷新页面
// function pushHistory() {// window.addEventListener(“popstate”, function(e) {// self.location.reload();// }, false);// var state = {// title : “”,// ...
2019-03-08 17:57:48 270
转载 //到底部
function scrollToEnd() { var h = $(document).height() - $(window).height(); $("html,body").animate({ "scrollTop": h }, 200); }
2018-12-01 14:25:55 88
转载 数组随机打乱
// function shuffle(arr) {// var length = arr.length,// randomIndex,// temp;// while (length) {// randomIndex = Math.floor(Math.random() * (length–));// t...
2018-11-30 16:05:28 124
转载 //兼容ie9表单点击不畅问题
//兼容ie9表单点击不畅问题function ieClick(strSelect){var intver=setTimeout(function(){var phTips = $(strSelect);if( phTips.length > 0 ){clearTimeout(intver);phTips.click(function(){$(this).prevAll(‘in...
2018-10-29 16:59:26 88
转载 //数组分页
//线下报名数组分页function pagination(pageNo, pageSize, array) {var offset = (pageNo - 1) * pageSize;return (offset + pageSize >= array.length) ? array.slice(offset, array.length) : array.slice(offset, ...
2018-10-26 17:56:46 187
mqttws31.js
2019-05-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人