//要转换的json对象 var obj = {name: 'zs','class': {classId: 11, className: 'class1'},ids: [1, 2, 3] }; var url = $.jsonUrlEncode(obj); //url的输出结果 name=zs&class;.classId=11&class;.className=class1&ids=1&ids=2&ids=3