- 博客(54)
- 问答 (1)
- 收藏
- 关注
原创 网页下滚的时候,导航栏消失的效果
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"...
2019-07-29 21:47:56 996
原创 Javaweb验证码项目
package com.jbben.jdbc.servlet;import javax.imageio.ImageIO;import javax.servlet.ServletException;import javax.servlet.annotation.WebServlet;import javax.servlet.http.Cookie;import javax.servle...
2019-02-15 14:02:59 213
转载 Html—Servlet—Service—Dao简单思路整理
#web项目思路整理(Html—Servlet—Service—Dao)##HTML请求触发页面加载时触发$(function(){Ajax请求})为指定元素加载事件时触发$(“元素选择器”).事件名称(function(){Ajax请求})请求格式$.请求方式(“请求路径”,{属性名:属性值...},function(data){回调函数},响应值类型)请求方式主要为g...
2019-02-10 21:03:20 528
原创 二级联动菜单
Javabean:package com.jbben.ajax2;public class Channel { private String code;//select中的value值 private String name;//select中显示的项 public Channel() { } public Channel(String co...
2019-02-07 21:11:39 207
原创 小程序显示的bug
<view class='view1'><view class='view2'></view><view class='view3'></view><view class='view4'></view></view>.view1{ height: 440rpx;
2019-01-16 18:01:46 228
原创 微信授权
<view class='dengluview' wx:if='{{denglu}}'> <view class='denglumiddle'> <view class='denglumiddle1'> <text>微信授权</text> </view> ...
2019-01-16 14:25:55 131
原创 固定最小值和最大值的随机数
function selec(low,high){ var ch=high-low+1; return Math.floor(Math.random()*ch+low);}
2019-01-13 09:31:07 741
原创 实时显示时间
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><div id=&
2018-12-23 09:44:40 3654
原创 完美的布局
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>CSS布局</title> <style type="text/css"> *{ margin: 0; padding:0;
2018-12-07 21:36:54 120
原创 判断一个数字是否在1到12这12个数字之间
private int dealString(String s){ int a; try{ a = Integer.parseInt(s);} catch(Exception e){ e.printStackTrace(); return 1; } int[] intArray = {1,2,3,4,5,6,7,8,9,10,11,12}; for(int benInt...
2018-11-24 12:18:05 1740
原创 关于拖拽
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package testex...
2018-11-19 21:16:01 135
转载 实例
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package testpr...
2018-09-18 22:41:18 114
转载 getProperty方法大全(转载)
System.out.println("java版本号:" + System.getProperty("java.version")); // java版本号System.out.println("Java提供商名称:" + System.getProperty("java.vendor")); // Java提供商名称System.out.println("Java提供商网站:" + Sys...
2018-09-18 19:16:02 2984
转载 实例
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package testpr...
2018-09-17 19:44:38 128
转载 模板
/*为什么要有下面的这4个? 因为这4个参数是Class.forName和DriverManager.getConnection 的参数*/ static String driver; static String url; static String user; static String pass; //下面的方法就是为了获得参数 /...
2018-09-17 13:26:30 109
转载 实例
class ResultSetTableModel extends AbstractTableModel{ private ResultSet rs; private ResultSetMetaData rsmd; // 构造器,初始化rs和rsmd两个属性 public ResultSetTableModel(ResultSet aResultSet) { rs = aRe...
2018-09-16 20:57:46 103
转载 实例
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package javaap...
2018-09-16 17:45:46 138
转载 手绘图实例
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package handdr...
2018-09-15 16:33:43 131
转载 乒乓球实例
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package pinbal...
2018-09-14 22:11:45 334
转载 实例
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package simple...
2018-09-13 16:25:15 116
转载 实例
import java.awt.*;import java.awt.datatransfer.*;/** * Description: * <br/>网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> * <br/>Copyright (C), 2001-2016, Yeeku.H.Lee...
2018-09-12 22:17:34 86
转载 实例
// 通过继承Thread类来创建线程类public class FirstThread extends Thread{ private int i ; // 重写run方法,run方法的方法体就是线程执行体 public void run() { for ( ; i < 100 ; i++ ) { // 当线程类继承Thread类时,直接使用this即可获取当...
2018-09-12 15:34:54 91
转载 实例
public class ThrowTest{ public static void main(String[] args) { try { // 调用声明抛出Checked异常的方法,要么显式捕获该异常 // 要么在main方法中再次声明抛出 throwChecked(-3); } catch (Exception e) { System.ou...
2018-09-11 17:20:50 98
转载 实例
import java.sql.*;import java.util.*;import java.io.*;/** * Description: * <br/>网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> * <br/>Copyright (C), 2001-2016, Yeeku...
2018-09-09 19:58:47 88
转载 实例
public void printResultSet(ResultSet rs)throws SQLException { //就是为了获得ResultSet的表头 ResultSetMetaData rsmd = rs.getMetaData(); for(int i = 0;i<rsmd.getColumnCou...
2018-09-09 17:40:09 105
转载 实例
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package connec...
2018-09-09 16:15:18 91
原创 MySQL模板
//将下面的两个方法放到程序里面调用就可以了public class ConnectMysql { static String driver; static String url; static String user; static String pass; public void getParam(String param) throws Exc...
2018-09-09 14:07:02 286
转载 ResultSetMetaData的经典例子
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package querye...
2018-09-07 20:37:10 274
原创 StringBuilder应用举例
public class JavaApplication49 { /** * @param args the command line arguments */ public static void main(String[] args) { StringBuilder sb = new StringBuilder(); sb...
2018-09-06 14:12:21 470
原创 my.ini配置
[mysqld]character-set-server=utf8#绑定IPv4和3306端口bind-address = 0.0.0.0port = 3306sql_mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"default_storage_engine=innodbinnodb_buffer_pool_size=1000M...
2018-08-29 20:23:44 19291 2
转载 关于解压版的MySQL的安装
1.解压到指定目录(如:D:\mysql5.7.17)2.环境变量Path添加D:\mysql5.7.17\bin(注意win10以下需要用分号隔开);3.配置my.ini basedir = D:\\mysql5.7.17 datadir = D:\\mysql5.7.17\\data port = 3306 max_connections=20 #default-charact...
2018-08-29 20:17:04 127
原创 JDBC例子1
简单的从MySQL里读取值,显示到JTextField里/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in...
2018-08-29 17:18:21 126
原创 AutoBoxing和AutoUNBoxing
public class AutoBoxingUnboxing{ public static void main(String[] args) { // 直接把一个基本类型变量赋给Integer对象 Integer inObj = 5; // 直接把一个boolean类型变量赋给一个Object类型的变量 Object boolObj = true; // 直接把一个I...
2018-08-13 16:39:56 193
原创 关于swing的Border
这个例子搞通了,Border也就搞通了import javax.swing.*;import javax.swing.border.*;import java.awt.*;/** * Description: * <br/>网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> * <br/&...
2018-08-13 15:15:38 503
原创 非常经典的swing入门代码
import java.awt.*;import java.awt.event.*;import javax.swing.*;/** * Description: * <br/>网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> * <br/>Copyright (C), 2001-20...
2018-08-12 15:26:49 1525 2
空空如也
Swing里为什么纵向的Box对象中嵌套一个横向的Box对象就会无法对齐?
2018-09-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人