采用类似数组的方式,如下:
var json = { "id": 1 }; $("input").each(function () { json[$(this).get(0).name] = $(this).get(0).value; });
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com