自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

mqttws31.js 用于小程序 mqtt 服务,端口的话必须为443, app.globalData.client.connect({ userName: app.globalData.userInfo.nickName, password: '', useSSL: false, cleanSession: false, keepAliveInterval: 60, onSuccess: function () { app.globalData.client.subscribe(that.data.channel, { qos: 0 }); app.globalData.client.publish(that.data.channel, JSON.stringify({ cmd: 'add', uid: app.globalData.userInfo.nickName, msg: '' }), 0, false); } }); }else { app.globalData.client.publish(that.data.channel, JSON.stringify({ cmd: 'onlineSet', uid: [app.globalData.userInfo.nickName], msg: '' }), 0, false); } }, })

2019-05-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除