/// 获取本机网卡mac地址代码 /// /// /// /// public string GetNetworkAdpaterID() { try { ...
百度uploader Demo文件上传 开始上传 Struts配置中 result = "success" type="json" 后台处理的action 方法:public String uploadMeterialAttachment() thr...
分类:
Web程序 时间:
2015-05-26 11:59:14
阅读次数:
812
每次用,每次查,每次查,每次忘,这下忘不了了吧! 另,要这两个包, public void getResponseDetail(String url) {
HttpServletResponse response = (HttpServletResponse) super.getContextParam(ServletAc...
分类:
Web程序 时间:
2015-05-26 10:54:58
阅读次数:
124
Array.prototype.S=String.fromCharCode(2);?
Array.prototype.in_array=function(e){?
??var?r=new?RegExp(this.S+e+this.S);?
??return?(r.test(this.S+this.join(this.S)+this.S));?
}; Jquery 中 ...
分类:
编程语言 时间:
2015-05-26 10:53:44
阅读次数:
412
functionxml2arr($xml){$obj=simplexml_load_string($xml,'SimpleXMLElement',LIBXML_NOCDATA);$json=json_encode($obj);$arr=json_decode($json,true);return$a...
分类:
编程语言 时间:
2015-05-26 10:40:31
阅读次数:
168
1.DAO层接口的设计,定义一个PersonDAO接口,里面声明了两个方法:public interface PersonDAO{ public List queryByPage(String hql, int offset, int pageSize); public int ...
分类:
Web程序 时间:
2015-05-26 10:40:23
阅读次数:
131
#include "stdafx.h"#include "string"#include "iostream"#include "vector"#include "sstream"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ .....
分类:
编程语言 时间:
2015-05-26 10:34:26
阅读次数:
213
loadrunner controller 传递参数的一个方法: lr_get_attrib_stringlang = lr_get_attrib_string("lang"); if (lang==NULL || (strcmp(lang,"chs") && strcmp(lang,"en")) ...
分类:
其他好文 时间:
2015-05-26 10:29:07
阅读次数:
147
考虑实现一个订单系统:
一旦订单被创建,只有订单的创建人才可以修改订单中的数据,其他人则不能修改。
三个属性:产品名称、订购数量、订购人
public interface OrderAPI {
public String getProductionName() ;//得到产品名称
public void setProductionName(String productionNam...
分类:
其他好文 时间:
2015-05-26 09:23:18
阅读次数:
152
线程的休眠使用方法:public static void sleep(long millis)throws InterruptedException{}
可见该方法有异常抛出,所以要进行异常的处理。public class A implements Runnable {
private String name;
public A(String name) {
sup...
分类:
编程语言 时间:
2015-05-26 09:22:40
阅读次数:
162