上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: background: transparent; background: rgba(0, 0, 0, 0.8); 阅读全文
posted @ 2020-04-14 15:51 YJUI 阅读(10257) 评论(0) 推荐(0) 编辑
摘要: 1、调取视频自动播放video.play()时报错 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. 因为没法在页面加载完成的时候播放 阅读全文
posted @ 2020-04-14 09:33 YJUI 阅读(825) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/tangxiujiang/article/details/80927699 阅读全文
posted @ 2020-04-03 11:03 YJUI 阅读(1334) 评论(0) 推荐(0) 编辑
摘要: highcharts图表type:column事例的格式是这样的: (不论接口返回什么格式,需要转换成下面这样的): xAxis: { categories: ['一月','二月'], }, series: [ {name: '东京',data: [49, 71]}, {name: '纽约',dat 阅读全文
posted @ 2020-04-03 09:54 YJUI 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 1、for 原始的遍历: 其实除了这三种方法以外还有一种最原始的遍历,自Javascript诞生起就一直用的 就是for循环,它用来遍历数组 var arr = [1,2,3,4] for(var i = 0 ; i< arr.length ; i++){ console.log(arr[i]) } 阅读全文
posted @ 2020-04-02 17:02 YJUI 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 以下三种方法都可以返回:"09" 1、n<10 ?'0'+n:''+n 2、('0'+n).slice(-2) 3、(''+n).padStart(2,'0') 阅读全文
posted @ 2020-04-02 09:45 YJUI 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1、利用JSON.stringify var objData = {}; JSON.stringify(objData) "{}" // true 2、 ES6 Object.keys() 与 Object.getOwnPropertyNames() 差不多 区别在于 前者是返回对象可枚举的属性, 阅读全文
posted @ 2020-04-01 16:54 YJUI 阅读(396) 评论(0) 推荐(0) 编辑
摘要: for (i in points) 改成 for(var i = 0; i < points,length; i++) 阅读全文
posted @ 2020-04-01 15:51 YJUI 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: 假如父组件传给子组件的值,子组件接受之后,想要改变父组件传过来的值,就可以使用sync .sync是vue中用于实现简单的“双向绑定”的语法糖,在平时的开发中是非常使用的。 vue的prop是单向下行绑定:父级的prop的更新会向下流动到子组件中,但是反过来不行。可是有些情况,我们需要对prop进行 阅读全文
posted @ 2020-04-01 13:50 YJUI 阅读(451) 评论(0) 推荐(0) 编辑
摘要: headers: { 'token':token, 'identity':identity, 'Content-Type': 'application/x-www-form-urlencoded' }, 阅读全文
posted @ 2020-04-01 08:48 YJUI 阅读(267) 评论(0) 推荐(0) 编辑
摘要: dateRangUtil.js /** * 日期范围工具类 */ var dateRangeUtil = (function () { /*** * 获得当前时间 */ this.getCurrentDate = function () { return new Date(); }; /*** * 阅读全文
posted @ 2020-03-31 19:39 YJUI 阅读(3173) 评论(0) 推荐(0) 编辑
摘要: 1、new Date()格式转 字符串格式 Fri Jan 01 2010 00:00:00 GMT+0800 (中国标准时间) 转成: 2010-01-01 00:00:00 js代码函数: value是Mon May 06 2019 04:05:00 GMT+0800 (中国标准时间) getN 阅读全文
posted @ 2020-03-31 17:11 YJUI 阅读(899) 评论(0) 推荐(0) 编辑
摘要: 在请求ajax时 ,有时后台要求在请求头里边上参数 ,这种情况下一般都是在原生APP项目当中,因为要在登录状态下才,所有要传token和登录id, var token = localStorage.getItem('token')||''; var identity = localStorage.g 阅读全文
posted @ 2020-03-30 10:02 YJUI 阅读(6308) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/jiangxiaobo/p/10669943.html 阅读全文
posted @ 2020-03-27 17:05 YJUI 阅读(512) 评论(0) 推荐(0) 编辑
摘要: style = "opacity :{{num}}" class = "vp {{opacity == 0 ? 'opacity1':''}}" 阅读全文
posted @ 2020-03-27 13:21 YJUI 阅读(6443) 评论(0) 推荐(0) 编辑
摘要: 在实际开发中会遇到,点击input框之后要弹出用户授权相关确认弹窗 ,这时input焦点还在 弹窗上边 ,怎么取消呢 ,当随便点击一处 就取消了 ,但这并不是最好的解决方法 ,体验上也不太好,bindfocus 事件触发后 怎么自动解除,小程序不能模拟点击事件,选择调用bindblur也不好使,最终 阅读全文
posted @ 2020-03-27 13:15 YJUI 阅读(2672) 评论(0) 推荐(0) 编辑
摘要: 小程序开发过程中会遇到参数id会通过二维码获取,然后执行接口调取数据,但是难免会遇到带过来的参数出现乱码 ,这样就需要解码,多个参数时就要进行处理取我们需要的字段值: 扫二维码获取的参数如下: onLoad: function (option) { console.log(option) // } 阅读全文
posted @ 2020-03-26 09:01 YJUI 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: 移动端H5web 用input type = file 在部分安卓手机上无法调起摄像头拍照,有的也无法访问相册而是直接访问了文档,解决办法是: 加上 accept = "image/*" 防止打开是的文档,加上 mutiple="mutiple" 可以再打开的时候选择是打开相册还是使用摄像头,一般加 阅读全文
posted @ 2020-03-19 16:21 YJUI 阅读(1244) 评论(0) 推荐(0) 编辑
摘要: 一 ,最通用的写法 <p :style="{fontFamily:arr.conFontFamily,color:arr.conFontColor,backgroundColor:arr.conBgColor}">{{con.title}}</p> 二, 三元表达式 <a :style="{colo 阅读全文
posted @ 2020-03-19 11:36 YJUI 阅读(9833) 评论(0) 推荐(0) 编辑
摘要: 一般用于本地存储中使用(中英文切换本地存储,刷新页面): location.reload(); 阅读全文
posted @ 2020-03-16 15:09 YJUI 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页