tencent cloud

Performance Testing Service

Related Agreements
Service Level Agreement
Use Limits
Privacy Policy
Data Processing And Security Agreement
문서Performance Testing Service

util.toArrayBuffer

포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-03-10 17:23:46
During the script execution, util.toArrayBuffer is used to convert parameters into byte arrays in JS.
toArrayBuffer(data: string | ArrayBuffer): ArrayBuffer

Parameters

Parameter
Type
Description
data
string or ArrayBuffer.
The data to be converted.

Return

Type
Description
ArrayBuffer
The converted results.

Samples

Call the method to perform data conversion:
import util from 'pts/util';

export default function () {
console.log(util.toArrayBuffer('12345')); // [object ArrayBuffer]
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백