- 博客(48)
- 资源 (3)
- 问答 (1)
- 收藏
- 关注
原创 Delete `␍`eslint(prettier/prettier) 错误的解决方案
Delete `␍`eslint(prettier/prettier) 错误
2023-03-18 16:56:16
750
原创 移动端使用 js sdk 在ios上一直报invalid signature的问题解决
wx.getLocation ios invalid signature
2022-07-08 10:28:13
767
原创 ChunkLoadError: Loading chunk pages-admissionTicket-admissionTicket~pages-basicInfo-basicInfo~pages-
ChunkLoadError: Loading chunk pages-admissionTicket-admissionTicket~pages-basicInfo-basicInfo~pages-
2022-06-25 20:15:49
874
原创 position: absolute position: fixed “失效“
position: absolute参考非static的position属性的最近父级元素而绝对定位position: absolute参考transform或perspective或filter属性非none的最近父级元素而绝对定位position: fixed参考浏览器窗口而固定定位position: fixed参考transform或perspective或filter属性非none的最近父级元素而固定定位...
2022-05-13 08:50:16
548
原创 点击图标(文字)预览图片
<template> <div class="preview-page"> <i class="el-icon-question" @click="openViewer"></i> <el-image-viewer v-if="showViewer" :on-close="closeViewer" :url-list="picArr" /> </div></te
2022-04-22 19:10:52
803
原创 手动去idea的工具库中下载gitee到本地
地址为:http://plugins.jetbrains.com/我的IDEA help->about查看 为UItimate把ZIP包放到该位置
2019-08-01 17:34:32
1788
原创 pom.xml' already exists in VFS
使用IDEA创建一个Maven 工程时,有些时候会出现:【Failed to create a Maven project: '../pom.xml' already exists in VFS】原先只删除掉该Maven 工程不行,还得删除C:\Users\Administrator\.IntelliJIdea2019.1\config\tasks目录下的两个对应名字的压缩包...
2019-07-10 17:24:39
1308
2
原创 GC分配担保
Minor GC针对新生代Major GC针对老年代Full GC针对整个新生代、老年代,元空间(metaspace,java8以上取代永久代)。进入老年代的三种情况1大对象 2长期存活的对象 3动态对象年龄判定:相同年龄所有对象大小的总和大于Survivor空间的一半垃圾回收机制的设计目的是减少Full GC老年代最大可用的连续空间大于新生代所有对象总空间时,...
2019-04-25 18:34:49
554
原创 HashMap浅析
JDK7: HashMap数据结构=数组+单链表, JDK8: HashMap数据结构=数组+单链表+红黑树。static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;//默认初始容量2^4static final int MAXIMUM_CAPACITY = 1 << 30;//最大容量2^30容量必须是2的幂s...
2019-04-21 13:32:55
423
原创 jquery实现图片滚动展示
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>app2</title> <style type="text/css"> .tu{ float: left; posit
2018-04-23 14:04:31
1618
原创 TCP双向通信
服务器:import java.awt.*;import java.awt.event.*;import java.io.*;import java.net.*;import javax.swing.*;public class Server { private ServerSocket server; private Socket socket;
2018-01-08 16:52:01
1639
原创 printStackTrace(PrintStream s)
左侧栏Fu.java右键最后一行的Properties,切换字符编码Text file encoding
2017-12-31 16:25:13
1057
原创 发扑克牌
import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.Map.Entry;import
2017-12-30 12:11:31
417
原创 ?迭代时改变集合里的元素
public class Le { public static void main(String[] args) throws Exception{// Set set = new HashSet(); Set set = new TreeSet(); set.add("张三"); set.add("李四");
2017-11-13 09:21:30
455
原创 在面板上移动的字
import java.awt.Graphics;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.Timer;public class
2017-10-15 17:17:36
414
原创 动态面板
import java.awt.Color;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.BorderFactory;import javax.swing.JButton;import javax.swing.JFrame;impor
2017-10-01 20:30:49
422
原创 窗体的动态背景图
import java.awt.Graphics;import java.io.IOException;import javax.swing.JFrame;import javax.swing.JPanel;public class Fu extends JPanel{ Le annotationn; public Fu() throws IOException
2017-09-17 21:25:21
2000
原创 计算机内存不足
myeclipse与HBuilder很耗计算机内存,而且多个虚拟机在运行。Ctrl+Alt+Delete打开任务管理器,选详细信息,关闭正在运行的javaw.exe。
2017-09-17 13:52:39
977
原创 not null
create table sub(daiti tinyint not null, (必写)wujin int, (可不写)ditie char(2) not null); (必写)insert into sub(daiti,wujin,ditie)values(3,6,'y');insert into sub
2017-08-16 17:55:25
432
原创 检查约束
检查约束 让某个数据列的值在某个范围之间。create table sub(daiti tinyint not null,wujin int not null,ditie char(2) not null);alter table subadd constraint ck_wu(自定义) check(ditie='nan' or ditie='n
2017-08-16 11:58:48
583
原创 唯一性约束
唯一性约束指的是某个列在每行数据中是唯一的。1create table hardware(wujin int not null primary key,yingjian char(5) not null unique);2create table hardware(wujin int not null primary key,yingjian
2017-08-16 11:55:47
570
原创 ? 实现Runnable
public class Fu implements Runnable{ private int constructor; public void run() { for (; constructor System.out.println(Thread.currentThread().getName()+" "+constructor); } }
2017-08-13 17:18:03
1053
原创 类初始化的时机
class Filter{ static { System.out.println("过滤渗透"); }}public class Le{ public static void main(String[] args) throws ClassNotFoundException{ ClassLoader technology=ClassLoader.getS
2017-07-19 20:52:21
469
原创 exit异常终止
public class Fu { public static void main(String[] args){ try(InputStreamReader bag=new InputStreamReader(System.in); BufferedReader load=new BufferedReader(bag)) { String linked=nul
2017-07-19 11:09:55
543
原创 ? StringWriter
public class Fu { public static void main(String[] args){ try( StringWriter load=new StringWriter()) { load.write("符合,\n"); load.write("工作量\n"); load.write("装填"); Syst
2017-07-18 20:26:58
406
原创 FileNotFoundException
public class Fu { public static void main(String[] args) throws IOException{ FileInputStream pack=new FileInputStream("src/555"); byte[] directory=new byte[1024]; int filter=0
2017-07-10 15:56:03
528
原创 IllegalArgumentException
public class Le{ public static void main(String[] args) throws IOException { File file=new File("src/74ls160"); System.out.println(file.getName()); System.out.println(file.getA
2017-07-08 15:03:13
879
原创 IOException
public class Le{ public static void main(String[] args) throws IOException { File file=new File("src/com/tencent/555"); //报异常 // File file=new File("src/com/tencent/666");
2017-07-08 14:56:03
670
原创 FileDialog(文件对话框)
public class Fu{ Frame filefFrame=new Frame("tczm"); FileDialog bagFileDialog1=new FileDialog( filefFrame,"pzls",FileDialog.LOAD); FileDialog loadDiFileDialog2=new FileDialog( filef
2017-07-06 12:41:43
1074
转载 ? addActionListener()调用actionPerformed()
ActionListener是一个接口,里面只有一个方法是actionPerformed(),比如你有一个button bt,上面注册了2个ActionListener对象lis1, lis2,即bt.addActionListener(lis1);bt.addActionListener(lis2);当你点击一下这个button后,会有java的一个进程侦听到windows的这个消息,然
2017-07-02 10:44:32
2964
原创 自动调用,代码块
public class Le{ public void oppo() { System.out.println("empty"); } { System.out.println("integer"); oppo(); }}public class Xi extends Le{ public void oppo() { Syst
2017-07-01 15:34:54
442
右键菜单菜单项快捷键是|注释|,不是|注释 Ctrl+/|
2017-07-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅