<script src="__PUBLIC__/Common/js/jquery-form.js"></script>
function save_info(){ $("#gender").val($(".gender").find(".on").attr("tag")); var options = { url: '__CONTROLLER__/saveInfo', type: 'POST', dataType: 'json', success: function(data) { if(data.error > 0){ swal("", "操作失败!", "error"); }else{ swal("", "修改成功!", "success"); } } }; $('#frm').ajaxSubmit(options); }