摘要:
转载:https://www.cnblogs.com/woodk/p/4990262.html 阅读全文
摘要:
var compare = function (obj1, obj2) { var val1 = obj1.wareCode; var val2 = obj2.wareCode; if (val1 < val2) { return -1; } else if (val1 > val2) { retu 阅读全文
摘要:
scan.vue界面<template> <view class="content"> <view>二维码数据是:{{result}}</view> <button class="btn" type="primary" @tap="open">自定义二维码界面</button> </view> </ 阅读全文
摘要:
var img = "http://xxx/timg.jpg"; var image = new Image(); image.src = img; image.onload = function() { //文件的Base64字符串 var base64 = getBase64Image(image); console.log(base64); } /** * 图像转... 阅读全文
摘要:
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 阅读全文
摘要:
与setTimeout相比,requestAnimationFrame最大的优势是由系统来决定回调函数的执行时机。 如果屏幕刷新率是60Hz,那么回调函数就每16.7ms被执行一次,如果刷新率是75Hz,那么这个时间间隔就变成了1000/75=13.3ms,换句话说就是,requestAnimati 阅读全文
摘要:
转载处:https://www.cnblogs.com/jack-lin/p/6480555.html 阅读全文
摘要:
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( 阅读全文
摘要:
转载:https://www.jianshu.com/p/3019858e3cad 阅读全文
摘要:
1.安装:npm install animate.css --save 2.在main.js中 import animated from 'animate.css' Vue.use(animated) 3.在页面中使用 animated不能漏 阅读全文