自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 layui table 保存状态赋值checkbox

layui table 保存状态赋值checkbox在项目中遇到一个问题,layui的checkbox复选框选择之后切换分页返回时选择状态消失,需要重新给checkbox赋值、设置一个缓存set,保存选中项var checkedSet = new Set();监听点击check事件 table.on('checkbox(dataguid1Table)', function(obj...

2019-01-16 18:03:43 4113

原创 SpringSecurity和wangeditor上传图片时403

SpringSecurity和wangeditor上传图片时403上传图片之前设置xhr editor.customConfig.uploadImgHooks = { before: function (xhr, editor, files) { **var token = $("meta[name='_csrf']").attr("content...

2019-01-02 13:13:05 1282 1

原创 spring security post 请求403问题

spring security post 请求403问题加入以下代码 <!-- Site Title --> <meta name="_csrf" th:content="${_csrf.token}" /> <!-- default header name is X-CSRF-TOKEN --> <meta name="_csrf_header...

2019-01-02 09:16:12 2360

原创 vue实现1-4-9宫格切换

vue实现1-4-9宫格切换<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <title>将页面平均分成四部分</title> <script src="https://cdn.boo

2018-12-14 15:57:17 4655

原创 数据库上传下载文件

数据库上传、下载文件/*** Created by CodeGenerator on 2018/09/04.*/@RestController@RequestMapping("/file")public class BlobFileController { @Resource private BlobFileService blobFileService;...

2018-09-08 09:49:15 234

原创 基于Windows10 UWP平台和zigbee&RFID的智能家居

一、功能    1.1必应每日一图    1.2天气显示            1.3 摄像头直播推流    1.5 数据实时采集&继电器控制    1.6 历史数据查询    1.7 Cortana语音控制1.8 磁贴更新1.9刷卡/手机NFC开灯 二、服务端搭建    历史数据接口    实时数据接口:    控制接口:三、控制端搭建    解析串口协议控制协调器    与tomcat...

2018-04-11 17:47:05 683 2

原创 基于安卓和zigbee的智能家居系统

2018-03-03 22:39:10 1455 1

原创 【剑指offer】二叉树的下一个节点

class TreeLinkNode { int val; TreeLinkNode left = null; TreeLinkNode right = null; TreeLinkNode next = null;// 父节点的引用 TreeLinkNode(int val) { this.val = val; } public class Solution { pub

2017-12-08 20:49:17 193

原创 【剑指offer】重建二叉树

class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; }}public class Solution { public static TreeNode reConstructBinaryTree(int[] pre, int[] in) { return

2017-12-08 20:44:37 183

原创 【剑指offer】从尾到头打印链表

import java.util.ArrayList;//从尾到头打印链表/*** public class ListNode {* int val;* ListNode next = null;** ListNode(int val) {* this.val = val;* }* }

2017-12-08 20:35:33 122

原创 【剑指offer】数组中重复的数字

import java.util.Arrays;public class Solution { // Parameters: // numbers: an array of integers // length: the length of array numbers // duplication: (Output) the duplicated number in the array

2017-12-08 20:32:47 102

原创 [剑指offer]矩阵中的路径

public class Solution { public boolean hasPath(char[] matrix, int rows, int cols, char[] str) { //为空情况 if (matrix.length == 0 || str.length == 0) { return false; } //是否访问过 默认false boolea

2017-12-08 20:26:13 150

原创 [剑指offer]二维数组中的查找

//在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。public class Solution {public boolean Find(int target, int [][] array) { boolean e = false; for (int i = 1; i

2017-11-24 19:34:50 117

原创 二叉树前序遍历非递归实现

public static void qian1(Node node) { Stack s= new Stack<>(); while (node!=null || !s.isEmpty()) { if(node!= null) { System.out.print(node.getData()); s.push(node); node = node.getl

2017-11-22 16:38:15 217

原创 二叉树层次遍历

public static void cengci(Node node) { Queue queue = new ArrayDeque<>(); queue.offer(node); Node cNode = null; while (!queue.isEmpty()) { cNode = queue.poll(); if(cNode.getlNode()!=null

2017-11-22 16:37:02 144

原创 【剑指offer】连续子数组最大和

static int sum(int a[]) { int thissum = 0; int max = Integer.MIN_VALUE; for (int i : a) { thissum += i; if (thissum > max) { max = thissum; } if (thissum < 0) { thissum = 0;

2017-11-22 16:35:17 111

原创 归并排序

//归并排序class Merge{ static int []aux; static void sort(int []a) { aux = new int[a.length]; mergeSort(a, 0, a.length-1); System.out.println(Arrays.toString(a)); } static void mergeSort(int a

2017-11-22 16:31:32 122

原创 希尔排序

//希尔排序 public static void shell(int a[]) { int N = a.length; for (int h = N/2;h>0;h/=2) { for (int i = h;i<N;i++) { for (int j = i ;j >=h&&a[j]<a[j-h];j-=h) { swap(a, j, j-h); }

2017-11-22 16:29:01 118

原创 快速排序

// 快速排序 static void sort2(int a[], int l, int r) { if (l < r) { int mid = pa(a, l, r); sort2(a, l, mid - 1); sort2(a, mid + 1, r); } return; } private static int pa(int[] a, int l, in

2017-11-22 16:27:34 110

原创 冒泡排序

// 冒泡排序 static void sort(int[] a) { for (int i = 0; i < a.length; i++) { for (int j = 0; j < a.length - i - 1; j++) { if (a[j] > a[j + 1]) { int tmp = a[j + 1]; a[j + 1] = a[j];

2017-11-22 16:25:57 109

原创 选择排序

//选择排序 static void sortMax(int a[]) { for (int i=0;i<a.length;i++) { for(int j = i;j<a.length;j++) { if(a[j]<a[i]) { int x = a[j]; a[j] = a[i]; a[i] = x; } } } }

2017-11-22 16:24:42 77

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除