摘要: 先授权,再保存 阅读全文
posted @ 2019-10-23 10:00 一个小小前端 阅读(3795) 评论(0) 推荐(0) 编辑
摘要: 2019-07-08 至 2019-07-14 // 一周时间表 function getBeforeDate(n) {//n为你要传入的参数,当前为0,前一天为-1,后一天为1 var date = new Date... 阅读全文
posted @ 2019-10-22 14:27 一个小小前端 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: /*去掉苹果短的样式*/ input[type="button"], input[type="submit"], input[type="reset"] { -webkit-appearance: none; } textarea { -webkit-appearan... 阅读全文
posted @ 2019-10-22 14:23 一个小小前端 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: //超过一行省略号 overflow: hidden; white-space: nowrap; text-overflow: ellipsis; //超过两行省略号 overflow: hidden; text-overflow: ellipsis; display: box; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-or 阅读全文
posted @ 2019-10-17 18:01 一个小小前端 阅读(20325) 评论(1) 推荐(0) 编辑
摘要: // 点击上一周 prevWeek: function(e) { this.data.num = this.data.num - 7; this.getWeekStartDate(this.data.num); }, // 点击下一周 nextWeek: function(e) { this.dat 阅读全文
posted @ 2019-10-16 18:26 一个小小前端 阅读(3468) 评论(0) 推荐(0) 编辑
摘要: let date = '2019-10-14'; var repTime = date.replace(/-/g, '/'); var timeTamp = Date.parse(repTime) / 1000; ios不支持‘-’,所以要先转为‘/’格式的日期 阅读全文
posted @ 2019-10-14 18:21 一个小小前端 阅读(2734) 评论(0) 推荐(0) 编辑
摘要: 引入文件 var dateTimePicker = require('../../utils/dateTimePicker.js'); function withData(param) { return param < 10 ? '0' + param : '' + param; } functio 阅读全文
posted @ 2019-10-12 16:49 一个小小前端 阅读(10105) 评论(10) 推荐(1) 编辑
摘要: beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("X-Auth0-Token", getToken("token")); }, 阅读全文
posted @ 2019-10-11 14:02 一个小小前端 阅读(6872) 评论(0) 推荐(0) 编辑
摘要: 1.引入 <script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script> 2.使用 md5(password) 阅读全文
posted @ 2019-10-09 16:31 一个小小前端 阅读(2561) 评论(0) 推荐(1) 编辑
摘要: 当整个页面就是一个view包着一个轮播、一个横向scroll-view和一个纵向scroll-view onReachBottom方法只执行一次 解决方法: 阅读全文
posted @ 2019-09-20 13:47 一个小小前端 阅读(3052) 评论(0) 推荐(0) 编辑