!67 修改readme 并添加mozilla_docs文件

Merge pull request !67 from clearme777/OpenHarmony-3.0-LTS
This commit is contained in:
openharmony_ci
2021-12-04 07:05:23 +00:00
committed by Gitee
3 changed files with 1701 additions and 276 deletions
+647 -276
View File
File diff suppressed because it is too large Load Diff
+1025
View File
File diff suppressed because it is too large Load Diff
+29
View File
@@ -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 };
}