試了二次沒成功,擱置了好久,今天再試一把
原來我的步驟方法是對的,就是少了臨門一角「644」!!!
簡單講一下
Server_A提供ssh連線
otnv 發表在 痞客邦 留言(2) 人氣(2,764)
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:
otnv 發表在 痞客邦 留言(0) 人氣(360)
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];
}
otnv 發表在 痞客邦 留言(0) 人氣(186)