Query

Query

Songo实例的内部对象,一般情况下,不要使用

Constructor

new Query(queryObject) → {Query}

Source:
Properties:
Name Type Description
string string 将query转后成url后的字符串
query object
object object
Parameters:
Name Type Description
queryObject Object 一个key-value的对象,没有对象嵌套
Returns:
Type
Query

Methods

parse(queryObject)

解析queryObject.

Source:
解析queryObject
Parameters:
Name Type Description
queryObject Object 一个key-value的对象,没有对象嵌套

toJson(replaceropt, spaceopt) → {string}

把一唯对象转换成json.

Source:
把一唯对象转换成json
Parameters:
Name Type Attributes Description
replacer replacer <optional>
跟JSON.stringify(value,replacer,space)中的replacer一样
space number | null <optional>
跟JSON.stringify(value,replacer,space)中的space一样
Returns:
Type
string

toObject() → {Object}

把queryObject对象转换成一维对象.

Source:
把queryObject对象转换成一维对象
Returns:
Type
Object

toString() → {string}

将query转后成url后的字符串.

Source:
将query转后成url后的字符串
Returns:
Type
string