- 博客(6)
- 收藏
- 关注
原创 eclipse常用快捷键
Ctrl+1 快速修复(最经典的快捷键,就不用多说了,可以解决很多问题,比如import类、try catch包围等)Ctrl+Shift+F 格式化当前代码 Ctrl+Shift+M 添加类的import导入Ctrl+Shift+O 组织类的import导入(既有Ctrl+Shift+M的作用,又可以帮你去除没用的导入,很有用)Ctrl+Y 重做(与撤销Ctrl+Z相反) Alt+/ 内容辅助(帮你省了多少次键盘敲打,太常用了)Ctrl+D 删除当前行或者多行 Alt+↓ .
2021-01-06 11:34:28
131
原创 System.setOut()和System.setIn()
System.setOut()改变输出流对象public static void main(String[] args ) { try { PrintStream out = System.out; PrintStream ps = new PrintStream("D:/log.txt"); System.setOut(ps); int age = 18; System.out.println("年龄重定义成功,初始值为18"); String sex = "女"; Sys
2021-01-06 10:49:16
487
原创 Vue项目JSON格式字符串和对象之间的互转
将对象转换为JSON格式字符串JSON.stringify(object)将JSON字符串转换为对象JSON.parse(jsonString
2021-01-06 09:37:32
892
原创 vue中localStorage和sessionStroage.getitem(key)的使用
客户端存储数据的两个对象为:1:sessionStorage 2:localStoragesessionStroage.setitem(key,value)保存数据;sessionStroage.getitem(key)获取数据;sessionStroage.remove(key);删除单个数据;sessionStroage.clear();清除所有数据;sessionStroage.keye(index)得到某个索引的key;LocalStroage和sessionStroage保持数据类.
2021-01-05 18:27:09
3460
原创 JAVA中“Cannot make a static reference to the non-static method nextLine() from the type Scanner”的解决方法
JAVA中“Cannot make a static reference to the non-static method nextLine() from the type Scanner”的解决方法一个简单的从控制台接收输入的身份证号,按照所给代码打出public class InputCode { public static void main(String[] args) { Scanner scan = new Scanner(System.in); //创建输入流扫描器 Sy
2021-01-05 18:08:55
586
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅