摘要: /** * 会话时间管理类 */ class SessionTimeManager { /** * 设置会话时间 * @param {string} key - 存储键名 * @param {number} duration - 持续时间(毫秒) */ static setSessionTime(k 阅读全文
posted @ 2025-03-11 10:46 ZeroShiro 阅读(1) 评论(0) 推荐(0)
摘要: // 使用例如 opSetAuth('scope.record', '录音权限').then((res) => { // console.log(res); // if (res) { // } // }); // 询问授权并且打开 function opSetAuth(scope , title 阅读全文
posted @ 2025-02-21 17:15 ZeroShiro 阅读(19) 评论(0) 推荐(0)
摘要: function formatDate(date) { /** * 格式化日期 * @param {Date|String} date 日期或日期字符串 */ function _isString(val) { return Object.prototype.toString.call(val) ' 阅读全文
posted @ 2023-06-29 14:21 ZeroShiro 阅读(44) 评论(0) 推荐(0)
摘要: https://github.com/ZeroShiro/timeClick 阅读全文
posted @ 2022-06-24 15:57 ZeroShiro 阅读(391) 评论(0) 推荐(0)
摘要: import Axios from "axios"; import Vue from "vue"; let exprotUtils = { exportX2(url, fromData, fileName, method = "POST", HOST = "") { let hostUrl = '默 阅读全文
posted @ 2022-03-17 17:21 ZeroShiro 阅读(163) 评论(0) 推荐(0)
摘要: import E from 'wangeditor'; import Vue from 'vue'; const { $, BtnMenu, DropListMenu, PanelMenu, DropList, Panel, Tooltip } = E; export class AlertMenu 阅读全文
posted @ 2022-03-17 17:17 ZeroShiro 阅读(624) 评论(0) 推荐(0)
摘要: /** * * @param {num} 格式化数数字保留2位 * @param {max} 最大值 * @param {min} 最小值 * @param {isFen} 最大值是否是分单位 * @param {returnMax} 超过最大值返回值 * @return {*num} */ fun 阅读全文
posted @ 2021-08-16 14:24 ZeroShiro 阅读(418) 评论(0) 推荐(0)
摘要: https://github.com/ZeroShiro/mys_lazyImg 阅读全文
posted @ 2020-09-08 16:57 ZeroShiro 阅读(5176) 评论(0) 推荐(0)
摘要: let videoAd = null; let adVideoUtils = { /** * @param {String} adUnitId 小程序广告视频id * videoAdInit 初始化广告 */ videoAdInit(adUnitId) { if (videoAd) { videoA 阅读全文
posted @ 2020-08-19 17:52 ZeroShiro 阅读(2230) 评论(0) 推荐(0)
摘要: https://ext.dcloud.net.cn/plugin?id=2435 阅读全文
posted @ 2020-08-04 14:30 ZeroShiro 阅读(987) 评论(0) 推荐(0)