無論你喜不喜歡,科技會改變我們的生活,而且想躲都躲不掉。
時代改變,我們也跟著改變
Everything must change so that everything can stay the same
javascript:
* convert data to binary string */
var data = new Uint8Array(arraybuffer);
var arr = new Array();
for(var i = 0; i != data.length; ++i) arr[i] = String.fromCharCode(data[i]);
var bstr = arr.join("");
Uint8Array:
Uint8Array
typed array represents an array of 8-bit unsigned integers. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).fromCharCode:
The static String.fromCharCode() method returns a string created from the specified sequence of UTF-16 code units.
ex:
console.log(String.fromCharCode(0x5433));
// 吳