2.4 使用$H() 函数

优质
小牛编辑
129浏览
2023-12-01

$H()函数把一些对象转换成一个可枚举的和联合数组类似的 Hash 对象。

<script>
function testHash()
{   

//let's create the object var a={ first:10,second:20,third:30 }; //now transform it into a hash

var h=$H(a); alert(h.toQueryString()); //displays: first=10&second=20&third=30 } </script>