摘要: //禁用console window.console = { log: function(){}, error: function(){}, info: function(){}, warn: function(){}, debug: function(){} }; 阅读全文
posted @ 2024-03-07 11:29 小林222 阅读(42) 评论(0) 推荐(0)
摘要: <template v-for="(item, index) in data1" :key="index"> <div class="info-item"> <div class="info-item-left">{{item.time}}</div> <div class="info-item-r 阅读全文
posted @ 2024-03-07 10:41 小林222 阅读(6) 评论(0) 推荐(0)
摘要: <el-radio-group v-model="state.ruleForm.sex"> <el-radio :label="1">男</el-radio> <el-radio :label="2">女</el-radio> </el-radio-group> 阅读全文
posted @ 2024-03-06 11:15 小林222 阅读(21) 评论(0) 推荐(0)
摘要: <el-form-item v-show="false"> <el-input v-model="ruleForm.id" /> </el-form-item> <el-input v-model="ruleForm.stationName" placeholder="请输入名称" clearabl 阅读全文
posted @ 2024-03-06 10:48 小林222 阅读(22) 评论(0) 推荐(0)
摘要: <el-pagination v-model:currentPage="tableParams.page" v-model:page-size="tableParams.pageSize" :total="tableParams.total ? tableParams.total : 0" :pag 阅读全文
posted @ 2024-03-06 10:36 小林222 阅读(21) 评论(0) 推荐(0)
摘要: <style> /* 宽度 */ ::-webkit-scrollbar { width: 5px; } /* 轨道 */ ::-webkit-scrollbar-track { box-shadow: inset 0 0 5px grey; border-radius: 10px; } /* 滚动 阅读全文
posted @ 2024-03-06 09:34 小林222 阅读(12) 评论(0) 推荐(0)
摘要: //等待执行 function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } await sleep(500) 阅读全文
posted @ 2024-03-01 15:54 小林222 阅读(27) 评论(0) 推荐(0)
摘要: <el-tabs v-model="activeName" class="demo-tabs" @tab-click="openloginfodell"> <template v-for="(item, index) in loginfo" :key="index"> <el-tab-pane :l 阅读全文
posted @ 2024-02-29 11:32 小林222 阅读(36) 评论(0) 推荐(0)
摘要: 1、要停止某个特定的定时器,你可以修改TimerManager类,为每个定时器分配一个唯一标识符(ID),并提供一个方法来停止具有特定ID的定时器。这样,你就可以精确控制要停止的定时器。下面是如何实现这个功能的示例代码: function TimerManager() { this.timers = 阅读全文
posted @ 2024-02-28 16:33 小林222 阅读(28) 评论(0) 推荐(0)
摘要: function 输出当前日期和时间() { const now = new Date(); const year = now.getFullYear(); // 年 const month = now.getMonth() + 1; // 月份 (0-11, 加1得到1-12) const day 阅读全文
posted @ 2024-02-28 16:16 小林222 阅读(5) 评论(0) 推荐(0)