Fork me on GitHub
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 25 下一页
摘要: 转载:/woodk/p/4990262.html 阅读全文
posted @ 2019-09-25 12:47 欢欢11 阅读(2370) 评论(0) 推荐(1) 编辑
摘要: var compare = function (obj1, obj2) { var val1 = obj1.wareCode; var val2 = obj2.wareCode; if (val1 < val2) { return -1; } else if (val1 > val2) { retu 阅读全文
posted @ 2019-09-19 11:24 欢欢11 阅读(252) 评论(0) 推荐(0) 编辑
摘要: scan.vue界面<template> <view class="content"> <view>二维码数据是:{{result}}</view> <button class="btn" type="primary" @tap="open">自定义二维码界面</button> </view> </ 阅读全文
posted @ 2019-09-18 14:04 欢欢11 阅读(6259) 评论(0) 推荐(1) 编辑
摘要: var img = "http://xxx/timg.jpg"; var image = new Image(); image.src = img; image.onload = function() { //文件的Base64字符串 var base64 = getBase64Image(image); console.log(base64); } /** * 图像转... 阅读全文
posted @ 2019-09-17 17:10 欢欢11 阅读(192) 评论(0) 推荐(0) 编辑
摘要: var arr = [ {name:'a',age:9}, {name:'b',age:12}, {name:'c',age:8} ]; arr.sort((a,b)=>{ return a.age - b.age }); function compare(property){ return fun 阅读全文
posted @ 2019-09-12 11:46 欢欢11 阅读(2211) 评论(0) 推荐(0) 编辑
摘要: 与setTimeout相比,requestAnimationFrame最大的优势是由系统来决定回调函数的执行时机。 如果屏幕刷新率是60Hz,那么回调函数就每16.7ms被执行一次,如果刷新率是75Hz,那么这个时间间隔就变成了1000/75=13.3ms,换句话说就是,requestAnimati 阅读全文
posted @ 2019-09-12 09:49 欢欢11 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 转载处:/jack-lin/p/6480555.html 阅读全文
posted @ 2019-09-07 09:48 欢欢11 阅读(424) 评论(0) 推荐(0) 编辑
摘要: dayjs一个轻量的处理日期的库var expiryDate = dayjs(item.EXPIRY_DATE).format('YYYY-MM-DD'); var today = new Date(); var today_time = dayjs(today).format('YYYY-MM-DD'); if (today_time > expiryDate) { uni.showModal( 阅读全文
posted @ 2019-09-06 17:32 欢欢11 阅读(3551) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.jianshu.com/p/3019858e3cad 阅读全文
posted @ 2019-09-05 14:24 欢欢11 阅读(3094) 评论(0) 推荐(0) 编辑
摘要: 1.安装:npm install animate.css --save 2.在main.js中 import animated from 'animate.css' Vue.use(animated) 3.在页面中使用 animated不能漏 阅读全文
posted @ 2019-09-04 18:19 欢欢11 阅读(1252) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 25 下一页