内爆查询是什么意思


What does implodeQuery mean?

我正在查看facebook的源页面。我在那里找到了一个经常使用的函数。线路是

input_len=URI.implodeQuery(this.data).length

我不明白这条线是什么意思,implodeQuery是什么意思。

我也需要同样的php函数。

请帮帮我!感谢

URI.implodeQuery似乎将传递的对象序列化为查询字符串(对于类似GET的请求)。这与jQuery.praram().的功能非常相似

从Facebook上的JavaScript控制台:

> URI.implodeQuery({'greeting':'hello','number':2,'vegetable':'carrot'});
"greeting=hello&number=2&vegetable=carrot"

URI.inexplodeQuery()不是javascript原生的。

这是Facebook代码中其他地方定义的方法。