- 博客(6)
- 收藏
- 关注
原创 bootstrap模态框保存后清除模态框数据的方法
代码如下,前面是模态框的一些常用设置,最后是解决方法<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integri
2022-04-08 22:16:50
1618
原创 位运算的一些技巧
x=x & (x−1),该运算将 x 的二进制表示的最后一个 1 变成 0。x&(-x)或者说x&(~x+1)这样做的作用是返回最右边的那个1。
2021-05-27 21:40:53
146
转载 Java学习之try-catch-finally-return之间的流程关系
1、情况一(try中有return,finally中没有return): public class TryTest{ public static void main(String[] args){ System.out.println(test()); } private static int test(){ int num = 10; try{ System.out.println("try"); return num += 80; }catch(
2021-05-22 13:22:51
133
原创 Java学习之try-catch的执行过程
对于try-catch执行过程有三种情况1 try中没有异常,执行完try中的语句就可以执行try-catch外面的语句,顺序执行。public class TryCatchDemo { public static void main(String[] args) { try{ System.out.println("代码段1"); //System.out.println(1/0); System.out
2021-05-22 12:12:19
1185
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人