一.ArrayList继承了AbstractList,实现了List接口,底层实现基于数组,因此可以认为是一个可变长度的数组。二.在讲扩容机制之前,我们需要了解一下ArrayList中最主要的几个变量: //定义一个空数组以供使用 private static final Object[] EMPT ...
分类:
其他好文 时间:
2021-06-23 16:31:27
阅读次数:
0
话不多说,直接上代码。 //首先下载插件 npm install dom-to-image // 将html页面内容转化为png图片引入的dom-to-image import domtoimage from 'dom-to-image'; var node = document.getElemen ...
分类:
Web程序 时间:
2021-06-23 16:23:50
阅读次数:
0
vue-cli 2.0 在webpack.prod.conf.js代码配置 最顶层 增加 const version = new Date().getTime() cosnt webpackConfig = merge(baseWebpackConfig, { ..., // 此处省略 // 增加o ...
分类:
其他好文 时间:
2021-06-22 18:18:12
阅读次数:
0
什么是Mybatis 一款优秀的持久层框架,避免了JDBC底层繁杂的手动设置参数和获取结果集的过程。能够使用xml文件或注解形式来映射实体类和数据库内容。 Mybatis官方文档: http://www.mybatis.org/mybatis-3/zh/index.html Github上地址:ht ...
分类:
其他好文 时间:
2021-06-22 18:13:22
阅读次数:
0
vue2.x的项目里,通过 new 一个 Vue 实例的方式,让它来充当事件总线,管理非父子组件之间的事件派发响应。 先创建一个eventBus.js文件,编辑如下 import Vue from "vue"; const eventBus = new Vue(); export default e ...
分类:
其他好文 时间:
2021-06-22 18:05:54
阅读次数:
0
1.webpack.config.js中导入 const HtmlWebpackPlugin = require('html-webpack-plugin') 2.pulgin中新增 new HtmlWebpackPlugin({ template:'index.html' }) 3.需要删除out ...
分类:
Web程序 时间:
2021-06-21 20:44:37
阅读次数:
0
一、EF(Entity Framework)简介 1.ORM:Object Relation Mapping,用操作对象的方法来操作数据库 2.ORM工具有很多:Dapper、PetaPoco、NHibernate,其中用的最多的还是微软官方的Entity Framework 3.EF底层仍然是对A ...
分类:
Web程序 时间:
2021-06-21 20:39:11
阅读次数:
0
前端时间,通过画脑图记录的方式深入分析了一下:spring底层容器的刷新过程,现在拆分为博客,分享一下。后面会附上脑图的原文件,供大家查看。 public class BeanAutowired { public static void main(String[] args) { Applicati ...
分类:
移动开发 时间:
2021-06-21 20:31:10
阅读次数:
0
Solution 设$f_i$ 为斐波那契数列第 \(i\) 项 , \(f_0=0,f_1=1\) , 第一只兔子在第一月出生 考虑每次产生新兔子的过程 , 可以发现第 \(i\) 月 \((i\geq3)\) 出生的第 \(j\) 个兔子的编号为 \(f_{i-1}+j\) , 它的父亲的也就是 ...
分类:
其他好文 时间:
2021-06-21 20:00:18
阅读次数:
0
Solution lca+前缀和 快读不要忘写c= 复杂度 \(O(nk)\) Code #include<iostream> #include<cstdio> #include<cstdlib> #define ll long long using namespace std; const int ...
分类:
其他好文 时间:
2021-06-21 19:59:39
阅读次数:
0