Appearance
KBE3D / KBCore / Cesium / objectToQuery
函数: objectToQuery()
objectToQuery(
obj:any):string
Converts an object representing a set of name/value pairs into a query string, with names and values encoded properly for use in a URL. Values that are arrays will produce multiple values with the same name.
参数
obj
any
The object containing data to encode.
返回
string
An encoded query string.
示例
ts
const str = Cesium.objectToQuery({
key1 : 'some value',
key2 : 'a/b',
key3 : ['x', 'y']
});