var xmlHttp; uName() //用户名失去焦点时 {
if(all.uname.=="") { all.l1.innerHTML="不能为空!"; setTimeout("close(1)",1500);
return; } else { ...
分类:
其他好文 时间:
2014-05-08 14:23:43
阅读次数:
330
源表(table1)数据{A:string B:array C:string}A B C190
[1030,1031,1032,1033,1190] select id191 [1030,1031,1032,1033,1190] select
id希望的结果是:190 1030 select id1...
分类:
其他好文 时间:
2014-05-08 14:19:57
阅读次数:
311
if(navigator.userAgent.indexOf("MSIE")>0){return"MSIE";}if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){return"Firefox";}if(isSafari=navigator....
分类:
Web程序 时间:
2014-05-07 17:03:46
阅读次数:
288
题目链接 Find the contiguous subarray within an array
(containing at least one number) which has the largest sum. For example, given
the array [?2,1,?3,4,...
分类:
其他好文 时间:
2014-05-07 16:42:42
阅读次数:
287
RCP Editor 修改状态,Editor被修改后,在关闭Editor时提示用户保存的实现步骤。
1、Editor中声明
private boolean dirty;
2、重写isDirty
@Override
public boolean isDirty() {
return dirty;
}
3、设置方法
public void setDirty(boolea...
分类:
其他好文 时间:
2014-05-07 15:48:38
阅读次数:
242
BOOL
首先编写程序:
#import
BOOL areIntDifferent(int ver1 , int ver2){
if(ver1 == ver2){
return (NO);
}else{
return (YES);
}
}
NSString* boolSt...
分类:
其他好文 时间:
2014-05-07 12:53:43
阅读次数:
263
第七章编程练习答案
7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数
//7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数
#include
using namespace std;
double average (unsigned x, unsigned y)
{
return (2.0 * x * y / (x + y));
}
i...
分类:
编程语言 时间:
2014-05-07 12:03:52
阅读次数:
727
inline static UIColor* getColorFromHex(NSString *hexColor)
{
if (hexColor == nil) {
return nil;
}
unsigned int red, green, blue;
NSRange range;
range.length = 2;
...
分类:
移动开发 时间:
2014-05-07 11:48:26
阅读次数:
327
Subsets IGiven a set of distinct integers, S,
return all possible subsets.Note:Elements in a subset must be in non-descending
order.The solution set m...
分类:
其他好文 时间:
2014-05-07 11:13:33
阅读次数:
299
用Array来实现Stack,语言c#。欢迎大家批评指正。关键点:当数组满的时候,把数组长度延长2倍当非空元素等于数组长度的1/4的时候,把数组长度减半。public
class Stack { T[] a = new T[1]; int size = 0; ...
分类:
其他好文 时间:
2014-05-07 10:39:49
阅读次数:
461