当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
46 Star 180 Fork 4.8K

OpenHarmony/interface_sdk-js
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
@ohos.url.d.ts 58.36 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623
/*
* Copyright (c) 2021-2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit ArkTS
*/
/**
* The url module provides utilities for URL resolution and parsing.
*
* @namespace url
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* The url module provides utilities for URL resolution and parsing.
*
* @namespace url
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* The url module provides APIs for parsing URL strings and constructing URL instances to process URL strings.
*
* @namespace url
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare namespace url {
/**
* The URLSearchParams interface defines some practical methods to process URL query strings.
*
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams
* @name URLSearchParams
*/
class URLSearchParams {
/**
* A parameterized constructor used to create an URLSearchParams instance.
* As the input parameter of the constructor function, init supports four types.
* The input parameter is a character string two-dimensional array.
* The input parameter is the object list.
* The input parameter is a character string.
* The input parameter is the URLSearchParams object.
*
* @param { string[][] | Record<string, string> | string | URLSearchParams } init - init init
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.constructor
*/
constructor(init?: string[][] | Record<string, string> | string | URLSearchParams);
/**
* Appends a specified key/value pair as a new search parameter.
*
* @param { string } name - name name Key name of the search parameter to be inserted.
* @param { string } value - value value Values of search parameters to be inserted.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.append
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter and its associated value,from the list of all search parameters.
*
* @param { string } name - name name Name of the key-value pair to be deleted.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.delete
*/
delete(name: string): void;
/**
* Returns all key-value pairs associated with a given search parameter as an array.
*
* @param { string } name - name name Specifies the name of a key value.
* @returns { string[] } string[] Returns all key-value pairs with the specified name.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.getAll
*/
getAll(name: string): string[];
/**
* Returns an ES6 iterator. Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
*
* @returns { IterableIterator<[string, string]> } Returns an iterator for ES6.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.entries
*/
entries(): IterableIterator<[string, string]>;
/**
* Callback functions are used to traverse key-value pairs on the URLSearchParams instance object.
*
* @param { function } callbackFn - callbackFn callbackFn Current traversal key value.
* @param { Object } thisArg - thisArg thisArg thisArg to be used as this value for when callbackFn is called
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.forEach
*/
forEach(callbackFn: (value: string, key: string, searchParams: URLSearchParams) => void, thisArg?: Object): void;
/**
* Returns the first value associated to the given search parameter.
*
* @param { string } name - name name Specifies the name of a key-value pair.
* @returns { string | null } Returns the first value found by name. If no value is found, null is returned.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.get
*/
get(name: string): string | null;
/**
* Returns a Boolean that indicates whether a parameter with the specified name exists.
*
* @param { string } name - name name Specifies the name of a key-value pair.
* @returns { boolean } Returns a Boolean value that indicates whether a found
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.has
*/
has(name: string): boolean;
/**
* Sets the value associated with a given search parameter to the
* given value. If there were several matching values, this method
* deletes the others. If the search parameter doesn't exist, this
* method creates it.
*
* @param { string } name - name name Key name of the parameter to be set.
* @param { string } value - value value Indicates the parameter value to be set.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.set
*/
set(name: string, value: string): void;
/**
* Sort all key/value pairs contained in this object in place and return undefined.
*
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.sort
*/
sort(): void;
/**
* Returns an iterator allowing to go through all keys contained in this object.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the names of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.keys
*/
keys(): IterableIterator<string>;
/**
* Returns an iterator allowing to go through all values contained in this object.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the values of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.values
*/
values(): IterableIterator<string>;
/**
* Returns an iterator allowing to go through all key/value
* pairs contained in this object.
* @returns { IterableIterator<[string, string]> } Returns an ES6 iterator. Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.[Symbol.iterator]
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Returns a query string suitable for use in a URL.
*
* @returns { string } Returns a search parameter serialized as a string, percent-encoded if necessary.
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URLParams.toString
*/
toString(): string;
}
/**
* The URLParams interface defines some practical methods to process URL query strings.
*
* @syscap SystemCapability.Utils.Lang
* @since 9
* @name URLParams
*/
/**
* The URLParams interface defines some practical methods to process URL query strings.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
* @name URLParams
*/
/**
* The URLParams interface defines some practical methods to process URL query strings.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
* @name URLParams
*/
class URLParams {
/**
* A parameterized constructor used to create an URLParams instance.
* As the input parameter of the constructor function, init supports four types.
* The input parameter is a character string two-dimensional array.
* The input parameter is the object list.
* The input parameter is a character string.
* The input parameter is the URLParams object.
*
* @param { string[][] | Record<string, string> | string | URLParams } [init] - init init
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types; 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* A parameterized constructor used to create an URLParams instance.
* As the input parameter of the constructor function, init supports four types.
* The input parameter is a character string two-dimensional array.
* The input parameter is the object list.
* The input parameter is a character string.
* The input parameter is the URLParams object.
*
* @param { string[][] | Record<string, string> | string | URLParams } [init] - init init
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* A constructor used to create a URLParams instance.
*
* @param { string[][] | Record<string, string> | string | URLParams } [init] - Input parameter objects, which include the following:
* - string[][]: two-dimensional string array.
* - Record<string, string>: list of objects.
* - string: string.
* - URLParams: object.
* The default value is null.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types; 2.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
constructor(init?: string[][] | Record<string, string> | string | URLParams);
/**
* A parameterized constructor used to create an URLParams instance.
* As the input parameter of the constructor function, init supports four types.
* The input parameter is a character string two-dimensional array.
* The input parameter is the object list.
* The input parameter is a character string.
* The input parameter is the URLParams object.
*
* @param { [string, string][] | Record<string, string> | string | URLParams } [init] - init init
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
constructor(init?: [string, string][] | Record<string, string> | string | URLParams);
/**
* Appends a specified key/value pair as a new search parameter.
*
* @param { string } name - name name Key name of the search parameter to be inserted.
* @param { string } value - value value Values of search parameters to be inserted.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Appends a specified key/value pair as a new search parameter.
*
* @param { string } name - name name Key name of the search parameter to be inserted.
* @param { string } value - value value Values of search parameters to be inserted.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Appends a key-value pair into the query string.
*
* @param { string } name - Key of the key-value pair to append.
* @param { string } value - Value of the key-value pair to append.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter and its associated value,from the list of all search parameters.
*
* @param { string } name - name name Name of the key-value pair to be deleted.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Deletes the given search parameter and its associated value,from the list of all search parameters.
*
* @param { string } name - name name Name of the key-value pair to be deleted.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Deletes key-value pairs of the specified key.
*
* @param { string } name - Key of the key-value pairs to delete.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
delete(name: string): void;
/**
* Returns all key-value pairs associated with a given search parameter as an array.
*
* @param { string } name - name name Specifies the name of a key value.
* @returns { string[] } string[] Returns all key-value pairs with the specified name.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns all key-value pairs associated with a given search parameter as an array.
*
* @param { string } name - name name Specifies the name of a key value.
* @returns { string[] } string[] Returns all key-value pairs with the specified name.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Obtains all the values based on the specified key.
*
* @param { string } name - Target key.
* @returns { string[] } string[] Returns all key-value pairs with the specified name.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
getAll(name: string): string[];
/**
* Obtains all the values based on the specified key.
*
* @param { string } name - Target key.
* @returns { Array<string> } Array<string> Returns all key-value pairs with the specified name.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
getAll(name: string): Array<string>;
/**
* Returns an ES6 iterator. Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
*
* @returns { IterableIterator<[string, string]> } Returns an iterator for ES6.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns an ES6 iterator. Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
*
* @returns { IterableIterator<[string, string]> } Returns an iterator for ES6.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and the first and second fields of
* each array are the key and value respectively.
*
* @returns { IterableIterator<[string, string]> } Returns an iterator for ES6.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
entries(): IterableIterator<[string, string]>;
/**
* Callback functions are used to traverse key-value pairs on the URLParams instance object.
*
* @param { function } callbackFn - callbackFn value Current traversal key value,
* key Indicates the name of the key that is traversed.
* @param { Object } [thisArg] - thisArg thisArg to be used as this value for when callbackFn is called
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Callback functions are used to traverse key-value pairs on the URLParams instance object.
*
* @param { function } callbackFn - callbackFn value Current traversal key value,
* key Indicates the name of the key that is traversed.
* @param { Object } [thisArg] - thisArg thisArg to be used as this value for when callbackFn is called
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Callback functions are used to traverse key-value pairs on the URLParams instance object.
*
* @param { function } callbackFn - callbackFn value Current traversal key value,
* key Indicates the name of the key that is traversed.
* @param { Object } [thisArg] - thisArg thisArg to be used as this value for when callbackFn is called
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
forEach(callbackFn: (value: string, key: string, searchParams: URLParams) => void, thisArg?: Object): void;
/**
* Iterates over a collection (e.g., URLs) and executes a callback function for each element.
*
* @param { UrlCbFn } callbackFn - A callback function to execute for each element.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
forEach(callbackFn: UrlCbFn): void;
/**
* Returns the first value associated to the given search parameter.
*
* @param { string } name - name name Specifies the name of a key-value pair.
* @returns { string | null } Returns the first value found by name. If no value is found, null is returned.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns the first value associated to the given search parameter.
*
* @param { string } name - name name Specifies the name of a key-value pair.
* @returns { string | null } Returns the first value found by name. If no value is found, null is returned.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Obtains the value of the first key-value pair based on the specified key.
*
* @param { string } name - Key specified to obtain the value.
* @returns { string | null } Returns the first value found by name. If no value is found, null is returned.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
get(name: string): string | null;
/**
* Obtains the value of the first key-value pair based on the specified key.
*
* @param { string } name - Key specified to obtain the value.
* @returns { string | undefined } Returns the first value found by name.
* If no value is found, undefined is returned.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get(name: string): string | undefined;
/**
* Returns a Boolean that indicates whether a parameter with the specified name exists.
*
* @param { string } name - name name Specifies the name of a key-value pair.
* @returns { boolean } Returns a Boolean value that indicates whether a found
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns a Boolean that indicates whether a parameter with the specified name exists.
*
* @param { string } name - name name Specifies the name of a key-value pair.
* @returns { boolean } Returns a Boolean value that indicates whether a found
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Checks whether a key has a value.
*
* @param { string } name - Key specified to search for its value.
* @returns { boolean } Returns a Boolean value that indicates whether a found
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
has(name: string): boolean;
/**
* Sets the value associated with a given search parameter to the
* given value. If there were several matching values, this method
* deletes the others. If the search parameter doesn't exist, this
* method creates it.
*
* @param { string } name - name name Key name of the parameter to be set.
* @param { string } value - value value Indicates the parameter value to be set.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Sets the value associated with a given search parameter to the
* given value. If there were several matching values, this method
* deletes the others. If the search parameter doesn't exist, this
* method creates it.
*
* @param { string } name - name name Key name of the parameter to be set.
* @param { string } value - value value Indicates the parameter value to be set.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Sets the value for a key. If key-value pairs matching the specified key exist, the value of the first key-value
* pair will be set to the specified value and other key-value pairs will be deleted. Otherwise, the key-value pair
* will be appended to the query string.
*
* @param { string } name - Key of the value to set.
* @param { string } value - Value to set.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
set(name: string, value: string): void;
/**
* Sort all key/value pairs contained in this object in place and return undefined.
*
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Sort all key/value pairs contained in this object in place and return undefined.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Sorts all key-value pairs contained in this object based on the Unicode code points of the keys and returns
* undefined. This method uses a stable sorting algorithm, that is, the relative order between key-value pairs
* with equal keys is retained.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
sort(): void;
/**
* Returns an iterator allowing to go through all keys contained in this object.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the names of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns an iterator allowing to go through all keys contained in this object.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the names of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Obtains an ES6 iterator that contains the keys of all the key-value pairs.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the names of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
keys(): IterableIterator<string>;
/**
* Returns an iterator allowing to go through all values contained in this object.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the values of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns an iterator allowing to go through all values contained in this object.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the values of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Obtains an ES6 iterator that contains the values of all the key-value pairs.
*
* @returns { IterableIterator<string> } Returns an ES6 Iterator over the values of each name-value pair.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
values(): IterableIterator<string>;
/**
* Returns an iterator allowing to go through all key/value
* pairs contained in this object.
*
* @returns { IterableIterator<[string, string]> } Returns an ES6 iterator. Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns an iterator allowing to go through all key/value
* pairs contained in this object.
*
* @returns { IterableIterator<[string, string]> } Returns an ES6 iterator. Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and the first and second fields ofeach array are
* the key and value respectively.
*
* @returns { IterableIterator<[string, string]> } Returns an ES6 iterator. Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and the first and second fields ofeach array are
* the key and value respectively.
*
* @returns { IterableIterator<[string, string]> } Returns an ES6 iterator.
* Each item of the iterator is a JavaScript Array.
* The first item of Array is name, and the second item of Array is value.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
$_iterator(): IterableIterator<[string, string]>;
/**
* Returns a query string suitable for use in a URL.
*
* @returns { string } Returns a search parameter serialized as a string, percent-encoded if necessary.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Returns a query string suitable for use in a URL.
*
* @returns { string } Returns a search parameter serialized as a string, percent-encoded if necessary.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Obtains search parameters that are serialized as a string and, if necessary, percent-encodes the characters in the string.
*
* @returns { string } Returns a search parameter serialized as a string, percent-encoded if necessary.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
toString(): string;
}
/**
* The interface of URL is used to parse, construct, normalize, and encode URLs.
*
* @syscap SystemCapability.Utils.Lang
* @since 7
* @name URL
*/
/**
* The interface of URL is used to parse, construct, normalize, and encode URLs.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
* @name URL
*/
/**
* The interface of URL is used to parse, construct, normalize, and encode URLs.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
* @name URL
*/
class URL {
/**
* URL constructor, which is used to instantiate a URL object.
* url: Absolute or relative input URL to resolve. Base is required if input is relative.
* If input is an absolute value, base ignores the value.
* base: Base URL to parse if input is not absolute.
*
* @param { string } url - url url
* @param { string | URL } base - base base
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URL.parseURL
*/
constructor(url: string, base?: string | URL);
/**
* URL constructor, which is used to instantiate a URL object.
*
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* URL constructor, which is used to instantiate a URL object.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* A no-argument constructor used to create a URL. It returns a URL object after parseURL is called.
* It is not used independently.
*
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
constructor();
/**
* Replaces the original constructor to process arguments and return a url object.
*
* @param { string } url - url url Absolute or relative input URL to resolve. Base is required if input is relative.
* If input is an absolute value, base ignores the value.
* @param { string | URL } [base] - base base Base URL to parse if input is not absolute.
* @returns { URL }
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @throws { BusinessError } 10200002 - Invalid url string.
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Replaces the original constructor to process arguments and return a url object.
*
* @param { string } url - url url Absolute or relative input URL to resolve. Base is required if input is relative.
* If input is an absolute value, base ignores the value.
* @param { string | URL } [base] - base base Base URL to parse if input is not absolute.
* @returns { URL }
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @throws { BusinessError } 10200002 - Invalid url string.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Parses a URL.
*
* @param { string } url - A string representing an absolute or a relative URL.
* In the case of a relative URL, you must specify base to parse the final URL.
* In the case of an absolute URL, the passed base will be ignored.
* @param { string | URL } [base] - Either a string or an object. The default value is undefined.
* - string: string.
* - URL: URL object.
* This parameter is used when url is a relative URL.
* @returns { URL }
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified;
* 2.Incorrect parameter types;
* 3.Parameter verification failed.
* @throws { BusinessError } 10200002 - Invalid url string.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
static parseURL(url: string, base?: string | URL): URL;
/**
* Returns the serialized URL as a string.
*
* @returns { string } Returns the serialized URL as a string.
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Returns the serialized URL as a string.
*
* @returns { string } Returns the serialized URL as a string.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Converts the parsed URL into a string.
*
* @returns { string } Returns the serialized URL as a string.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
toString(): string;
/**
* Returns the serialized URL as a string.
*
* @returns { string } Returns the serialized URL as a string.
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Returns the serialized URL as a string.
*
* @returns { string } Returns the serialized URL as a string.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Converts the parsed URL into a JSON string.
*
* @returns { string } Returns the serialized URL as a string.
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
toJSON(): string;
/**
* Gets and sets the fragment portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the fragment portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the fragment portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
hash: string;
/**
* Gets and sets the host portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the host portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the host portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
host: string;
/**
* Gets and sets the host name portion of the URL,not include the port.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the host name portion of the URL,not include the port.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the host name portion of the URL,not include the port.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
hostname: string;
/**
* Gets and sets the serialized URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the serialized URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the serialized URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
href: string;
/**
* Gets the read-only serialization of the URL's origin.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets the read-only serialization of the URL's origin.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets the read-only serialization of the URL's origin.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
readonly origin: string;
/**
* Gets and sets the password portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the password portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the password portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
password: string;
/**
* Gets and sets the path portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the path portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the path portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
pathname: string;
/**
* Gets and sets the port portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the port portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the port portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
port: string;
/**
* Gets and sets the protocol portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the protocol portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the protocol portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
protocol: string;
/**
* Gets and sets the serialized query portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the serialized query portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the serialized query portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
search: string;
/**
* Gets and sets the fragment portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get hash(): string;
/**
* Gets and sets the fragment portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set hash(hash: string);
/**
* Gets and sets the host portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get host(): string;
/**
* Gets and sets the host portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set host(host: string);
/**
* Gets and sets the host name portion of the URL,not include the port.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get hostname(): string;
/**
* Gets and sets the host name portion of the URL,not include the port.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set hostname(hostname: string);
/**
* Gets and sets the serialized URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get href(): string;
/**
* Gets and sets the serialized URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set href(href: string);
/**
* Gets the read-only serialization of the URL's origin.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get origin(): string;
/**
* Gets and sets the password portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get password(): string;
/**
* Gets and sets the password portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set password(password: string);
/**
* Gets and sets the path portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get pathname(): string;
/**
* Gets and sets the path portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set pathname(pathname: string);
/**
* Gets and sets the port portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get port(): string;
/**
* Gets and sets the port portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set port(port: string);
/**
* Gets and sets the protocol portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get protocol(): string;
/**
* Gets and sets the protocol portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set protocol(protocol: string);
/**
* Gets and sets the serialized query portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get search(): string;
/**
* Gets and sets the serialized query portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set search(search: string);
/**
* Gets the URLParams object that represents the URL query parameter.
* This property is read-only, but URLParams provides an object that can be used to change
* the URL instance. To replace the entire query parameter for a URL, use url.searchsetter.
*
* @type { URLParams }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get params(): URLParams;
/**
* Gets and sets the username portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
get username(): string;
/**
* Gets and sets the username portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 20
* @arkts 1.2
*/
set username(username: string);
/**
* Gets the URLSearchParams object that represents the URL query parameter.
* This property is read-only, but URLSearchParams provides an object that can be used to change
* the URL instance. To replace the entire query parameter for a URL, use url.searchsetter.
*
* @syscap SystemCapability.Utils.Lang
* @since 7
* @deprecated since 9
* @useinstead ohos.url.URL.params
*/
readonly searchParams: URLSearchParams;
/**
* Gets the URLParams object that represents the URL query parameter.
* This property is read-only, but URLParams provides an object that can be used to change
* the URL instance. To replace the entire query parameter for a URL, use url.searchsetter.
*
* @type { URLParams }
* @syscap SystemCapability.Utils.Lang
* @since 9
*/
/**
* Gets the URLParams object that represents the URL query parameter.
* This property is read-only, but URLParams provides an object that can be used to change
* the URL instance. To replace the entire query parameter for a URL, use url.searchsetter.
*
* @type { URLParams }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets the URLParams object that represents the URL query parameter.
* This property is read-only, but URLParams provides an object that can be used to change
* the URL instance. To replace the entire query parameter for a URL, use url.searchsetter.
*
* @type { URLParams }
* @readonly
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
readonly params: URLParams;
/**
* Gets and sets the username portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @since 7
*/
/**
* Gets and sets the username portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @since 10
*/
/**
* Gets and sets the username portion of the URL.
*
* @type { string }
* @syscap SystemCapability.Utils.Lang
* @crossplatform
* @atomicservice
* @since 11
*/
username: string;
}
/**
* The type of URL callback function.
*
* @typedef { function } UrlCbFn
* @param { string } value - The value of the URL parameter.
* @param { string } key - The key of the URL parameter.
* @param { URLParams } searchParams - The URLParams object containing all parameters.
* @returns { void } This callback does not return a value.
* @syscap SystemCapability.Utils.Lang
* @atomicservice
* @since 20
* @arkts 1.2
*/
type UrlCbFn = (value: string, key: string, searchParams: URLParams) => void;
}
export default url;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

搜索帮助