摘要: function WebSocketTest() { if ("WebSocket" in window) { alert("您的浏览器支持 WebSocket!"); // 打开一个 web socket ... 阅读全文
posted @ 2019-05-20 17:56 久而久之灬 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 微信端的项目中,比如微信商城之类的,肯定会涉及到微信支付这一块; 下面直接上详细的代码: 阅读全文
posted @ 2019-05-06 23:13 久而久之灬 阅读(532) 评论(0) 推荐(0) 编辑
摘要: axios.get("URL",{ params:{ data1:data1, data2:data2 }, headers: { 'Content-Type': 'application/json,cha... 阅读全文
posted @ 2019-05-06 17:49 久而久之灬 阅读(2646) 评论(0) 推荐(0) 编辑
摘要: /** * 获取当天所在月的最后一天日期,和下一个月的第一天日期 * 调用getMonthDay(d), d默认值为01,d为要设置成的day; */ const getMonthMaxDay = () => { var curDate = new Date(); var curMonth = curDate.getMonth(); /* 生成实际的月份: 由于curMont... 阅读全文
posted @ 2018-09-27 13:55 久而久之灬 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: .demo { text-align: justify; } .demo:after { display: inline-block; width: 100%; content: ''; } 阅读全文
posted @ 2018-06-13 11:19 久而久之灬 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-05-23 13:44 久而久之灬 阅读(89) 评论(0) 推荐(0) 编辑
摘要: //得到手机屏幕的宽度 let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth; //得到html的Dom元素 let htmlDom = document.getElementsByTagName('html')[0]; //设置根元素字体大小 htmlDom.style.fontSiz... 阅读全文
posted @ 2018-04-25 10:41 久而久之灬 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 注册github账号 https://github.com/ 安装git工具: https://git-for-windows.github.io/ 上面的准备工作完成后,现在开始操作。 一、进入github首页,点击“New repository”按钮,新建一个仓库。 二、填写相关信息,点击“Cr 阅读全文
posted @ 2017-11-09 16:49 久而久之灬 阅读(192) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-09 15:22 久而久之灬 阅读(2) 评论(0) 推荐(0) 编辑
摘要: H5提供了两种在客户端存储数据的方式:localStorage 持久化的本地存储(浏览器关闭重新打开数据依然存在)sessionStorage 针对一个session的本地存储之前这些都是由cookie来完成的,cookie的特点是存储量小,在服务器和客户端之间来回传递,传输效率不高。一般可以在判断 阅读全文
posted @ 2017-02-27 17:23 久而久之灬 阅读(151) 评论(0) 推荐(0) 编辑