whychw
2020-09-27 fab9683916a66c2a123419c777740013cf8e8fdb
src/script/common.js
@@ -247,6 +247,11 @@
    return res;
}
const RAF = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) {
        window.setTimeout(callback, 1000 / 60);
    };
const CAF = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame || clearTimeout;
export default {
    transSize,
    isSetOption,
@@ -260,6 +265,8 @@
    permitsToObj,
    objFormat,
    getCurrentDate,
    RAF,
    CAF,
    // throttle,
    setLocalStorage(key,val){
        const _val = (typeof val == 'object') ? JSON.stringify(val) : val;