最新评论
Re:JavaScript判断上传文件类型 人云我亦云 2010-01-21 10:10
@8989998
请问高手有什么高招,共享一下你的方法。
Re:JAVA中数据类型的转换 习惯,寂寞 2009-11-09 19:38
@雨叶秋寒
谢谢了
本人新手
下次如果有不懂的可以问你不
谢谢
re: JavaScript判断上传文件类型 yangyi336 2009-02-12 17:24
不太安全
re: FLASH读外部数据 dohes 2008-12-18 10:21
受教了~
re: JavaScript判断上传文件类型 8989998 2008-10-22 16:30
我晕。你这种判断。如果改了后缀名还是一样可以上传。有个鸟用。只能唬一般人
re: JavaScript判断上传文件类型 crown 2008-05-23 14:32
<input type=file onchange="alert(this.value.match(/^(.*)(\.)(.{1,8})$/)[3]+'类型')">
re: sjCatSoft上传组件 coolbest123 2007-11-03 11:16
能否将sjCatSoft上传组件给我一份,万分感谢!coolbest123@126.com
re: JavaScript判断上传文件类型 fsadf 2006-09-19 17:52
szdafsadf
re: Snippet Compiler lovvver 2006-08-10 15:16
可以下载吗?
re: sjCatSoft上传组件 宝玉 2005-11-10 18:02
re: JAVA中数据类型的转换 雨叶秋寒 2005-11-08 23:23
从JDK1.5才有,具体信息如下(摘自JAVA API 中文版):
public static Character valueOf(char c)
返回表示指定 char 值的 Character 实例。如果不需要新的 Character 实例,则通常应该优先采用此方法,而不是构造方法 Character(char),因为该方法很可能通过缓存经常请求的值来显著提高空间和时间性能。
参数:
c - 一个 char 值。
返回:
表示 c 的 Character 实例。
从以下版本开始:
1.5
re: JAVA中数据类型的转换 goodbaby 2005-11-07 10:40
奇怪Character我怎么没找到valueOf方法呢。
不知道楼上的是在什么环境下调试的
我在WIN2000+IE6下调试,楼上说的方法不可以。
re: 控制TextBox的ReadOnly属性 ξσ Dicky σξ 2005-09-27 13:03
document.form_color.order.readOnly=true; // 这样写就正确了,哈哈
re: JSP中的缓冲区你到底能用多少? 雨叶秋寒 2005-09-23 10:12
谢谢楼上的指点^_^
re: JSP中的缓冲区你到底能用多少? steeven 2005-09-23 10:02
应该是放 header了,比如cookie,缓存控制等
可以通过axis.jar里面有个tcpmon看看,返回到浏览器的内容
re: MSDN给出的Hashtable的示例 workjie 2005-07-09 21:12
确实都可以
不过 索引 会先检测是否已经存在此 KEY,如果不存在会创建一个然后附植
两者的代码一样
public virtual void set_Item(object key, object value)
{
this.Insert(key, value, false);
}
都是调用 Insert
private void Insert(object key, object nvalue, bool add)
{
uint num1;
uint num2;
int num6;
if (key == null)
{
throw new ArgumentNullException("key", Environment.GetResourceString("ArgumentNull_Key"));
}
if (this.count >= this.loadsize)
{
this.expand();
}
else if ((this.occupancy > this.loadsize) && (this.count > 100))
{
this.rehash();
}
uint num3 = this.InitHash(key, this.buckets.Length, out num1, out num2);
int num4 = 0;
int num5 = -1;
Label_0065:
num6 = (int) (num1 % this.buckets.Length);
if (((num5 == -1) && (this.buckets[num6].key == this.buckets)) && (this.buckets[num6].hash_coll < 0))
{
num5 = num6;
}
if ((this.buckets[num6].key == null) || ((this.buckets[num6].key == this.buckets) && ((this.buckets[num6].hash_coll & 0x80000000) == 0)))
{
if (num5 != -1)
{
num6 = num5;
}
this.buckets[num6].val = nvalue;
this.buckets[num6].key = key;
this.buckets[num6].hash_coll |= ((int) num3);
this.count++;
this.version++;
}
else if (((this.buckets[num6].hash_coll & 0x7fffffff) == num3) && this.KeyEquals(key, this.buckets[num6].key))
{
if (add)
{
object[] objArray1 = new object[2] { this.buckets[num6].key, key } ;
throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__", objArray1));
}
this.buckets[num6].val = nvalue;
this.version++;
}
else
{
if ((num5 == -1) && (this.buckets[num6].hash_coll >= 0))
{
this.buckets[num6].hash_coll |= -2147483648;
this.occupancy++;
}
num1 += num2;
if (++num4 < this.buckets.Length)
{
goto Label_0065;
}
if (num5 == -1)
{
throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_HashInsertFailed"));
}
this.buckets[num5].val = nvalue;
this.buckets[num5].key = key;
this.buckets[num5].hash_coll |= ((int) num3);
this.count++;
this.version++;
}
}
re: 前些天写程序居然忘了格式,贴在这里吧 雨叶秋寒 2005-07-06 11:15
欢迎,呵呵,不用花钱的,但是要申请的。
我来冒泡了,嘿嘿,不过这程序看不懂啊。你搬到这要不要花钱?