上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页
摘要: 1.创建函数 mysql>delimiter // mysql>create function 函数名(参数1 参数1类型,...) returns 返回类型 >begin >return 返回值; >end >// mysql>select 函数名(参数1, 参数2, 。。。); >// 创建存数过程 建表create table user(id mediumint(8) unsigned not null auto_increment,name char(15) not null default "",pass char( 阅读全文
posted @ 2013-05-28 20:08 聊聊IT那些事 阅读(5055) 评论(0) 推荐(0)
摘要: 在开发JSP与Struts时会遇到:解决jsp访问路径与Servlet访问路径不比配问题:第一种解决方法:例子: xx.jsp 该jsp存在于WEB的目录为:/admin/login.jsp 此jsp中的使用的图片路径为: ../image/bg.gif ../css/css.css 以上为正常写法,当然如果你的WEB项目下只有.jsp没有Servlet或是Action之类的Servlet是不会有问题的。但问题就出现在此项目中有了Servlet,例如Struts的Action. 如现Servlet时,通过某jsp跳到某jsp还可以,但当通过jsp访问到servlet,在通过servlet访问某 阅读全文
posted @ 2013-05-11 16:23 聊聊IT那些事 阅读(997) 评论(0) 推荐(0)
摘要: View Code 1 public static void main(String[] args)throws Exception { 2 3 FileInputStream fi=new FileInputStream("e:/retire.png"); 4 BufferedInputStream in=new BufferedInputStream(fi); 5 FileOutputStream fo=new FileOutputStream("d:/ss.png"); 6 BufferedOu... 阅读全文
posted @ 2013-05-10 17:00 聊聊IT那些事 阅读(284) 评论(0) 推荐(0)
摘要: 派生类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using ClassLibrary1.util;using ClassLibrary1.util.util2;namespace ClassLibrary1{ //声明代理类 public delegate void MyEvent(); public class Class1 { //enum是C#的关键字,定义枚举类型, Enum 是C#的一个类 ... 阅读全文
posted @ 2013-02-19 17:37 聊聊IT那些事 阅读(332) 评论(0) 推荐(0)
摘要: View Code 1 /*###########################################* 2 * 1.通过prototype建立面向对象的JavaScript 3 * 2.基于类的继承 4 ###########################################*/ 5 6 /*##################1#################*/ 7 /*创建交通工具的构造方法*/ 8 function Vehicle() { 9 /*交通工具属性*/10 var wheelCounts = 4;//车轮数11 ... 阅读全文
posted @ 2013-01-25 17:46 聊聊IT那些事 阅读(239) 评论(0) 推荐(0)
摘要: import java.lang.reflect.Array;import java.util.ArrayList;import java.util.Arrays;import java.util.HashMap;import java.util.List;import java.util.Map;public class MyTestMap { static int barGroupNum;//柱子数分为奇数和偶数 static int total ;//共有的组数 static List<double[]>list; static int align = 2;//每组柱子间隔 阅读全文
posted @ 2012-11-09 01:20 聊聊IT那些事 阅读(1213) 评论(0) 推荐(0)
摘要: MyAdapter.java 1 package com.testview; 2 3 import java.util.List; 4 import java.util.Map; 5 6 import android.content.Context; 7 import android.graphics.Color; 8 import android.view.LayoutInflater; 9 import android.view.View;10 import android.view.ViewGroup;11 import android.widget.BaseAdapter;12 i.. 阅读全文
posted @ 2012-10-18 18:31 聊聊IT那些事 阅读(527) 评论(0) 推荐(0)
摘要: package com.copy.encrypt;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.io.RandomAccessFile;public class FileEncryptAndDecrypt { /** 阅读全文
posted @ 2012-10-11 17:48 聊聊IT那些事 阅读(21691) 评论(2) 推荐(1)
摘要: View Code 1 package com.copy; 2 3 import java.awt.BorderLayout; 4 import java.awt.Color; 5 import java.awt.Component; 6 import java.awt.event.ActionEvent; 7 import java.awt.event.ActionListener; 8 import java.util.Vector; 9 10 import javax.swing.DefaultCellEditor; 11 import javax.swing.J... 阅读全文
posted @ 2012-09-18 11:05 聊聊IT那些事 阅读(4027) 评论(0) 推荐(0)
摘要: View Code 1 package com.copy.util; 2 3 import java.awt.Color; 4 import java.awt.event.ActionEvent; 5 import java.awt.event.ActionListener; 6 import java.lang.reflect.InvocationTargetException; 7 import java.lang.reflect.Method; 8 9 import javax.swing.JButton;10 11 public class ButtonHandler exten... 阅读全文
posted @ 2012-09-12 12:32 聊聊IT那些事 阅读(372) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页