js六大数据类型:number、string、object、Boolean、null、undefinedstring: 由单引号或双引号来说明,如”string”number:什么整数啊浮点数啊都叫数字,你懂的~Boolean: 就是true和false啦undefined:未定义,就是你创建一个变量后却没给它赋值~null: 故名思久,null就是没有,什么也不表示object: 这个我也很难解释...
分类:
编程语言 时间:
2015-05-11 13:01:34
阅读次数:
112
public final class LogManager
{
private String tag="LogManager";
public LogManager(String tag){
this.tag=tag;
}
public void debug(String msg){
Log.d(tag, msg);
}
public void error(...
分类:
其他好文 时间:
2015-05-11 12:59:20
阅读次数:
103
String msgStr="my name is {0} and my age is {1};"; String result = MessageFormat.format(msgStr,"tom",20); System.out.println(result); //输出: my nam...
分类:
其他好文 时间:
2015-05-11 12:57:27
阅读次数:
109
我的错误代码: 1 #include 2 3 using namespace std; 4 5 int longestValidParentheses(string s) 6 { 7 int i = 0; 8 int L = s.length(); 9 int j;10 ...
分类:
其他好文 时间:
2015-05-11 12:54:52
阅读次数:
96
题目:Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem s...
分类:
其他好文 时间:
2015-05-11 12:51:36
阅读次数:
214
public ActionResult Index() { string ConStr = ConfigurationManager.AppSettings["constr"]; string sql = "select * from UserInfo"; SqlConnection conn =....
分类:
其他好文 时间:
2015-05-11 12:42:38
阅读次数:
117
public void OUTEXCEL(string items,string where) { DataSet ds = new StudentBLL().GetTable(items,where); if (ds != null...
分类:
其他好文 时间:
2015-05-11 12:41:12
阅读次数:
83
首先是效果展示, 兼容火狐,IE6+,谷歌没测试有java后台数据准备 List GroupList = KBTGroup.GetGroupList(); String userGroup = UserConfig.Get("groupData"); if(JCU...
分类:
Web程序 时间:
2015-05-11 12:33:08
阅读次数:
144
/// /// 递归获取指定盘符下的所有文件及文件夹 /// 存在部分文件夹访问权限问题 /// /// string path = @"G:\"; /// string filter = "*.mp3"; private static void ParseDirectory(strin...
分类:
其他好文 时间:
2015-05-11 12:27:13
阅读次数:
115
Longest Valid Parentheses问题:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses sub...
分类:
其他好文 时间:
2015-05-11 12:27:10
阅读次数:
110