07 2023 档案

摘要:记录当前页面 select 下拉框的ref (若是table 列表里的 则 先监听table的滚动事件) <el-select ref="carrerSelect"></el-select> this.$refs.carrerSelect.handleClose() handleClose()方法是 阅读全文
posted @ 2023-07-24 17:20 伟笑 阅读(422) 评论(0) 推荐(0)
摘要:如下图报错:原因就是项目太大了。 解决方案: 第一步: npm install increase-memory-limit npm install cross-env 第二步: 在package.json文件中加入如下代码 "scripts": {"fix-memory-limit": "cross 阅读全文
posted @ 2023-07-13 17:58 伟笑 阅读(1381) 评论(0) 推荐(0)
摘要:function semicolon_Add(num){ num = num.replace(/,/g,""); if (num != ""){ var re = /^\d+(\.\d+)?$/; if(re.test(num)){ var parts = num.toString().split( 阅读全文
posted @ 2023-07-08 14:49 伟笑 阅读(29) 评论(0) 推荐(0)
摘要:/** * 保留小数点n位且整数自动补零 * */ pointFloor(num, n) { if (typeof(num) == 'number' || typeof(num) == 'string') { let numStr = num + ""; let list = numStr.spli 阅读全文
posted @ 2023-07-07 21:15 伟笑 阅读(26) 评论(0) 推荐(0)