回程:五分山氣象站→106縣道(十分、平溪)→汐平公路→汐止
總里程:74.99KM
總騎乘時間:5:28:44
行程圖片
HashMap< String , String > hm = new HashMap< String , String >();
hm.put("A", "A--Content");
hm.put("B", "B--Content");
//Get all value
for(Iterator< String > it = hm.keySet().iterator(); it.hasNext();){
String key = it.next();
System.out.println("Key: "+ key + ", value: "+hm.get(key));
}
//Get specific value
System.out.println(hm.get("A"));
Dictionary< string , string > dict = new Dictionary< string , string >();
try
{
dict.Add("A", "A--Content");
dict.Add("B", "B--Content");
//Get all value
foreach (KeyValuePair< string , string > kvp in dict)
{
Console.WriteLine("key: {0}, value: {1}", kvp.Key, kvp.Value);
}
//Get specific value
string val = "";
dict.TryGetValue("A", out val);
Console.WriteLine("value="+val);
//or
Console.WriteLine("value=" + dict["A"]);
}
catch (Exception)
{
//The method "Add" will throw exception if key already existed!!!
Console.WriteLine("Can't insert same key");
}
$.ajaxSetup({cache: false});
$.get("xxx.jsp",{A=a,B=b},function(){
});
$.get("xxx.jsp",{timestamp:new Date().getTime()},function(){
});
cd C:\Subversion\bin\
svnadmin create D:\Repos
[general]
anon-access = read #If you meet
#"svn: Not authorized to open root of edit operation"
#change read to none
auth-access = write #write means read and write
password-db = passwd #file "passwd"
authz-db = authz #file "authz"
realm = My Project #You could change this as you want.
[users]
austin = austin
ting = ting # userid = password
[groups]
matrix = austin,ting # group_name = group_members, ....
[Repos:/] # The repository you create before.
# or [/] for each repository
@matrix = rw # @+group_name, rw => read and write
cd C:\Subversion\bin\
svnserve -d
[{"AGE":"18","NAME":"Austin"},{"AGE":"20","NAME":"Leo"},{"AGE":"16","NAME":"Ting"}]
< table id="table1" width="200" border="1">
< tr>
< td width="30">& nbsp;< /td>
< td width="100">Name< /td>
< td>Age< /td>
< /tr>
< /table>
$.getJSON("./json.js",{},function(json){
var i = 0;
$.each(json, function(){
$("#table1 tr:last").after(""); "+i+" "+$(this).attr("NAME")+" "+$(this).attr("AGE")+"
i++;
});
$("#table1").fadeIn("slow");
});
$("#table1 tr:first").after('< tr>< td>& nbsp;< /td>< td>& nbsp;< /td>< td>& nbsp;< /td>< /tr>');
$("#table1 tr:last").after('< tr>< td>& nbsp;< /td>< td>& nbsp;< /td>< td>& nbsp;< /td>< /tr>');
if($("#table1 tr").length == 1){
alert("You can't delete it anymore!!");
}else{
$("#table1 tr:gt(0):first").remove();
}
if($("#table1 tr").length == 1){
alert("You can't delete it anymore!!");
}else{
$("#table1 tr:last").remove();
}
$("#table1 tr:gt(0):odd").css({background:"#DDDDDD"});
$("#table1 tr:gt(0):even").css({background:"#FFFFFF"});