- Mar 06 Sat 2010 00:53
-
【馬來西亞澳洲自助旅行】20100217 Kuala Lumpur China Town
- Mar 05 Fri 2010 23:52
-
【馬來西亞澳洲自助旅行】20100217 Malaka(下)

吃飽飯後向Malaka Sentral information center問如何搭bus到China Town
結果是:沒有bus會到
趕緊再問搭計程車的價格大約是多少
結果是:about RM25
- Mar 04 Thu 2010 21:56
-
【馬來西亞澳洲自助旅行】20100217 Malaka(上)
- Mar 03 Wed 2010 22:24
-
【馬來西亞澳洲自助旅行】20100216 TPE → Kuala Lumpur

大年初三怕塞車,很早就從豐原出發到桃園中正機場
在機場櫃台排隊check in時,遇到vivi一個女生因為旅伴生病所以一個人成行
vivi是這趟旅程中,第一個遇到的人
很特別的backpacker
- Nov 09 Mon 2009 01:29
-
20091107圓西式料理
- Nov 07 Sat 2009 00:22
-
20091106恒川先生到高雄出差
- Oct 25 Sun 2009 23:08
-
五人微型同學會vs干擾大雄同學會
- Oct 11 Sun 2009 17:46
-
20091010 新雜貨入手
- Oct 11 Sun 2009 16:45
-
Tommy小孩【不二家】滿月禮盒
- Sep 28 Mon 2009 11:04
-
JavaScript splice() Method
JavaScript Array 的使用方法和以前寫過的程式陣列比較不一樣
這是一個很好的插入陣列元素以及置換陣列元素的好方法,特此註記。
Definition and Usage
The splice() method is used to remove and add new elements to an array.
Syntax
arrayObject.splice(index,howmany,element1,.....,elementX)
Parameter
@index Required. Specify where to add/remove elements. Must be a number
@howmany Required Specify how many elements should be removed. Must be a number, but can be "0"
@element1 Optional. Specify a new element to add to the array
@elementX Optional. Several elements can be added
Example 1
In this example we will create an array and add an element to it:
這是一個很好的插入陣列元素以及置換陣列元素的好方法,特此註記。
Definition and Usage
The splice() method is used to remove and add new elements to an array.
Syntax
arrayObject.splice(index,howmany,element1,.....,elementX)
Parameter
@index Required. Specify where to add/remove elements. Must be a number
@howmany Required Specify how many elements should be removed. Must be a number, but can be "0"
@element1 Optional. Specify a new element to add to the array
@elementX Optional. Several elements can be added
Example 1
In this example we will create an array and add an element to it:
- Aug 20 Thu 2009 09:48
-
Convert Filesize Bytes to Readable String in Javascript
function readablizeBytes(bytes) {
var s = ['bytes', 'kb', 'MB', 'GB', 'TB', 'PB'];
var e = Math.floor(Math.log(bytes)/Math.log(1024));
return (bytes/Math.pow(1024, Math.floor(e))).toFixed(2)+" "+s[e];
}
var s = ['bytes', 'kb', 'MB', 'GB', 'TB', 'PB'];
var e = Math.floor(Math.log(bytes)/Math.log(1024));
return (bytes/Math.pow(1024, Math.floor(e))).toFixed(2)+" "+s[e];
}






