摘要: function getNow() { var tempDate = new Date(Date.now()); var year = tempDate.getFullYear(); var month = tempDate.getMonth() + 1; if(month < 10){ month 阅读全文
posted @ 2022-03-02 14:25 我的世界开始下雪 阅读(17) 评论(0) 推荐(0) 编辑
摘要: //导出csv import CsvExportor from 'csv-exportor'; handleExport(){ // const userListInfo = this.userListInfo; // const headerList = [ // this.$t('UserMan 阅读全文
posted @ 2021-12-02 16:39 我的世界开始下雪 阅读(51) 评论(0) 推荐(0) 编辑
摘要: import Vuex from 'vuex' import defaultState from './state/state' import mutations from './mutations/mutations' import getters from './getters/getters' 阅读全文
posted @ 2021-12-02 14:10 我的世界开始下雪 阅读(26) 评论(0) 推荐(0) 编辑
摘要: immutable在react中的使用https://segmentfault.com/a/1190000010438089 清理垃圾?还是需要一个软件的,不过仅限清理垃圾,我严重不推荐数字公司的,企鹅公司的倒是比win上好了太多,我用的是Clean my mac,切记,千万不要用智能清理,手动清理 阅读全文
posted @ 2021-11-28 18:51 我的世界开始下雪 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 视频下载 https://www.hangge.com/blog/cache/detail_1325.html 视频上传 kfk0dkm0hpapchvu.mp4是文件或文件路径 scp -r mda-kfk0dkm0hpapchvu.mp4 root@116.62.104.237:/home/ng 阅读全文
posted @ 2021-11-28 16:42 我的世界开始下雪 阅读(2) 评论(0) 推荐(0) 编辑
摘要: enable 进入特权模式config 进入全局配置模式no spanning-tree vlan 1 删除vlan 1上面的生成树功能switchport access vlan 2 将端口设置为vlan 2 access 只属于一个Vlan Trunk可以属于多个Vlan Switch>enab 阅读全文
posted @ 2021-11-22 15:22 我的世界开始下雪 阅读(587) 评论(0) 推荐(0) 编辑
摘要: <a href="http://localhost:5001/b.html" download="123.html">点击下载</a> 这样当用户打开浏览器点击链接的时候就会直接下载文件。 直接点击可以下载,需要注意的是download属性,当不加download属性时,如果文件格式为txt、pdf 阅读全文
posted @ 2021-11-22 14:15 我的世界开始下雪 阅读(2654) 评论(0) 推荐(0) 编辑
摘要: 利用概率的方法求圆周率 public class Test12 { public static void main(String[] args) { Square[] arr = new Square[1000000]; double x; double y; boolean flag; doubl 阅读全文
posted @ 2021-09-21 19:11 我的世界开始下雪 阅读(121) 评论(0) 推荐(0) 编辑
摘要: //本地如何搭建环境 // @babel/core 将js代码编译成抽象语法树(transform) // @babel/preset-env 插件集合(依赖@babel/core) // @babel/cli 可以使用npx命令行npx babel src/index.js -o newIndex 阅读全文
posted @ 2021-09-11 14:03 我的世界开始下雪 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 测试一 var reg = /(\/[\w]+?)(\/[\w]+?)/i reg.exec('/test/reg') 结果:["/test/r", "/test", "/r", index: 0, input: "/test/reg", groups: undefined] 测试二 var reg 阅读全文
posted @ 2021-08-15 10:41 我的世界开始下雪 阅读(262) 评论(0) 推荐(0) 编辑