mirror of
https://github.com/openharmony/js_util_module.git
synced 2026-07-21 06:05:21 -04:00
!67 修改readme 并添加mozilla_docs文件
Merge pull request !67 from clearme777/OpenHarmony-3.0-LTS
This commit is contained in:
+1025
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
|
||||
The definitions of some interfaces implemented in jsapi/api/js_url.cpp are released under Mozilla license.
|
||||
|
||||
The definitions and functions of these interfaces are consistent with the standard interfaces under mozila license,
|
||||
but the implementation of specific functions is independent and self-developed.
|
||||
|
||||
All interfaces are described in d.ts, the following is the interface written in d.ts under to Mozilla license
|
||||
|
||||
class TextDecoder {
|
||||
readonly encoding: string;
|
||||
readonly fatal: boolean;
|
||||
readonly ignoreBOM = false;
|
||||
constructor(
|
||||
encoding?: string,
|
||||
options?: { fatal?: boolean; ignoreBOM?: boolean },
|
||||
);
|
||||
decode(input: Uint8Array, options?: { stream?: false }): string;
|
||||
}
|
||||
|
||||
class TextEncoder {
|
||||
|
||||
readonly encoding = "utf-8";
|
||||
constructor();
|
||||
encode(input?: string): Uint8Array;
|
||||
encodeInto(
|
||||
input: string,
|
||||
dest: Uint8Array,
|
||||
): { read: number; written: number };
|
||||
}
|
||||
Reference in New Issue
Block a user