如果JSTL的方法库没有满足需要,可以使用自定义方法进行扩展
public class Function{
public static int length(Object obj){ //返回对象的长度
if(obj == null){
return 0;
}
...
分类:
Web程序 时间:
2015-01-24 10:14:40
阅读次数:
176
不多说了,curl的http上传文件代码示例,有需要的可以参考。int http_post_file(const char *url, const char *user, const char *pwd, const char *filename){ assert(url != NULL); ass...
分类:
Web程序 时间:
2015-01-24 10:07:33
阅读次数:
170
* @Transient public TBaseOrg getOrg() { if (this.getTBaseOrgs() != null && this.getTBaseOrgs().size() > 0) { for (TBaseOrg org : this.getTBaseOrg...
分类:
其他好文 时间:
2015-01-24 10:07:25
阅读次数:
152
#include
#include
typedef struct LinkNode
{
struct LinkNode* next;
int data;
}LinkList;
/*创建链表*/
void createLinkList(LinkList* head, int* a, int n)
{
int i = 0;
LinkNode* node = NULL...
分类:
其他好文 时间:
2015-01-24 09:00:44
阅读次数:
195
Bin Dec Hex 缩写/字符 解释00000000 0 00 NUL(null) // 空字符00000001 1 01 SOH(start of headling) // 标题开始00000010 2 02 STX (start of text) // 正文开始000000...
分类:
其他好文 时间:
2015-01-24 01:36:37
阅读次数:
233
ZeroMQ 官方地址 :http://api.zeromq.org/4-2:zmq_nullzmq_null(7) ØMQManual-ØMQ/4.1.0Namezmq_null-无安全和加密SynopsisNULL机制在ZMQRFC文档ZMTP3.0中进行了定义。http://rfc.zer.....
分类:
其他好文 时间:
2015-01-24 00:28:41
阅读次数:
213
一、分类基本数据类型:undefined、null、string、Boolean、number复杂数据类型:objectobject的属性以无序的名称和值对的形式 (name : value) 来定义1.1 、typeof操作符鉴于ECMAScript是松散型的,因此需要一种手段来检测给定的变量的数...
分类:
编程语言 时间:
2015-01-24 00:24:33
阅读次数:
275
今天趁着给大一大二的学生上课,整理下项目的前台源码,便于以后使用:
//
//此模板实现是所有常见的功能,如下拉列表,时间,网页编辑器,都对应一个案例,大家可以模仿开发其他功能。
//下面每个要注意的点我都标注了,仔细粘贴,避免错误,建议大家ctrl+f对同名替换,保证属性一致哈。
var ss = null;
Ext.onReady(function() {
Ext.BLANK_IM...
分类:
Web程序 时间:
2015-01-23 23:07:44
阅读次数:
349
Python调用shell命令进行ping网络检查#!/usr/bin/env python#coding:utf-8import osresult=os.system('ping -c 2 8.8.8.8 >>/dev/null')if result: print 'ping fail'el...
分类:
编程语言 时间:
2015-01-23 22:57:52
阅读次数:
268
List list = null; //定义Areas实体类对象以备接受数据,递归是方法调用方法本身,所以需要定义方法,然后窗体加载的时候调用方法,所以需要在方法体外定义为全局变量 private void FrmAreas_Load(object sender, ...
分类:
其他好文 时间:
2015-01-23 21:16:18
阅读次数:
333