通过代码示例来解释 export function t(){} import {t} from 't' export default function a(){} import a from 'a' 1.export导出对象,可以导出多个,export default只能导出一个 2.export ...
分类:
其他好文 时间:
2020-06-18 13:22:43
阅读次数:
41
Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: arr = [ ...
分类:
其他好文 时间:
2020-06-18 13:10:04
阅读次数:
64
<template> <div > <el-container v-if="mineSurveyAndGovernStatus.mineSurveyStatus '历史遗留矿山'&&mineSurveyAndGovernStatus.governState '已治理(含自然修复)'"> <el-as ...
分类:
其他好文 时间:
2020-06-18 13:04:32
阅读次数:
32
什么是异步组件? 异步组件就是定义的时候什么都不做,只在组件需要渲染(组件第一次显示)的时候进行加载渲染并缓存,缓存是以备下次访问。 为什么用异步组件? 在大型应用中,功能不停地累加后,核心页面已经不堪重负,访问速度愈来愈慢。为了解决这个问题我们需要将应用分割成小一些的代码块,并且只在需要的时候才从 ...
分类:
其他好文 时间:
2020-06-18 12:50:35
阅读次数:
64
mybatis-generator主要用于逆向工程,根据数据库来生成实体类以及mapper映射文件 1.第一步先添加依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <vers ...
分类:
其他好文 时间:
2020-06-18 12:36:03
阅读次数:
44
#1.错误提示:No default or UI configuration **解决:**iso文件损坏,重新下载 http://isoredirect.centos.org/centos/6/isos/i386/ 官网上有直接的国内镜像源,选择即可。 #2.安装过程中,错误提示:the cent ...
分类:
其他好文 时间:
2020-06-18 10:53:37
阅读次数:
57
依赖注入 依赖:指bean对象的创建依赖于容器,Bean对象的依赖资源 注入:指bean对象所依赖的资源,由容器来设置和装配 简单来说,就是将对象的成员变量赋值! 假如是通过有参构造方法来构造对象,并不需要成员变量的set方法嗷 假如是通过无参构造方法来构造对象,那么就需要set方法嗷! 常量注入: ...
分类:
其他好文 时间:
2020-06-17 23:25:30
阅读次数:
67
CA机构:Letsencrypt.org CA(default) 基于ACME协议的客户端:https://github.com/acmesh-official/acme.sh 简单易用,好上手,证书自动更新,还可自动识别Apache,nginx等web服务器。。。 ...
分类:
其他好文 时间:
2020-06-17 18:21:00
阅读次数:
53
ShouldBindQuery 函数只绑定Get参数,不绑定post数据 package main import ( "log" "github.com/gin-gonic/gin" ) type Person struct { Name string `form:"name"` Address s ...
分类:
其他好文 时间:
2020-06-17 18:15:34
阅读次数:
46
from selenium import webdriverimport timedriver = webdriver.Chrome()driver.get("https://mail.163.com/")driver.implicitly_wait(15)# 切换iframeiframe = dr ...
分类:
其他好文 时间:
2020-06-17 12:26:18
阅读次数:
45