Appearance
KBE3D / KBCore / Cesium / queryToObject
函数: queryToObject()
queryToObject(
queryString:string):any
Parses a query string into an object, where the keys and values of the object are the name/value pairs from the query string, decoded. If a name appears multiple times, the value in the object will be an array of values.
参数
queryString
string
The query string.
返回
any
An object containing the parameters parsed from the query string.
示例
ts
const obj = Cesium.queryToObject('key1=some%20value&key2=a%2Fb&key3=x&key3=y');
// obj will be:
// {
// key1 : 'some value',
// key2 : 'a/b',
// key3 : ['x', 'y']
// }