原文:说说 js String首先说说js的字符串,说到字符串这个就和我们原来的C# 代码有区别的就是,js里面没有chart类型。就是说他里面的 “ ”和‘ ’是要表达一样的意思。 其实这个里面就有一个问题了特别实在拼接字符串的时候可能有点晕,就是我们到底是用双引号好了,还是单引号。(注意:其实在...
分类:
Web程序 时间:
2015-01-20 17:45:32
阅读次数:
192
求最大最小值,不需要排序代码如下: 1 #include 2 using namespace std; 3 4 int n,max_grade=-1,min_grade=150; 5 int grade_temp; 6 string name1,name2,num1,num2,name_temp,....
分类:
其他好文 时间:
2015-01-20 17:36:37
阅读次数:
124
转载:http://blog.sina.com.cn/s/blog_6abcacf5010138q5.html private Hashtable NodesStatus = new Hashtable(); private string SelectNodeFullPath = st...
为了可以方便地在hadoop的管理界面(namenode和jobtracker)中自定义展示项,使用代理servlet的方式实现了hadoop的管理界面。首先,在org.apache.hadoop.http.HttpServer中的构造函数public HttpServer(String name,...
分类:
其他好文 时间:
2015-01-20 17:28:36
阅读次数:
676
JSON转Object官方原文:地址:http://www.json.org/js.htmlTo convert a JSON text into an object, you can use theeval()function.eval()invokes the JavaScript compil...
分类:
Web程序 时间:
2015-01-20 17:26:07
阅读次数:
136
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:
其他好文 时间:
2015-01-20 17:24:35
阅读次数:
125
///
/// 组合键转换成字符串类型
///
/// 键值
/// 字符串
private string CombineKeyCodeToString(Keys keyCode)
{
if (keyCode == Keys.None) return "无";
strin...
分类:
其他好文 时间:
2015-01-20 17:20:12
阅读次数:
181
本工具是通过访问 http://city.ip138.com/ip2city.asp 并解析其返回的内容来取得本机的公网 IP 的。 源码如下。unit PublicIPGetter;interfacefunction GetPublicIP: string;implementationuse...
分类:
其他好文 时间:
2015-01-20 17:13:11
阅读次数:
339
压缩文件相关的类: public class ZIPCompressUtil { public static Tuple Zip(string strZipTopDirectoryPath, int intZipLevel, string strPassword, stri...
分类:
Web程序 时间:
2015-01-20 17:12:16
阅读次数:
178
复制文件夹procedure TForm1.Button1Click(Sender: TObject);var ss:TSHFileOpStruct; sdir,ddir:string;begin sdir:=ExtractFilePath(ParamStr(0))+'Sou'; //源目录 ...
分类:
其他好文 时间:
2015-01-20 17:11:28
阅读次数:
146