var poject_Array = ""; $('input[name="yearCardPoject"]:checked').each(function () { poject_Array += $(this).val() + ",";//向数组中添加元素 });