serialize form

    function get_params(){
        var data = $md.find('form').serialize();
        return data;
    }

    function update_data(){
        var params = get_params();

        var extra = {
            future_id: future_id
        }
        params += '&' + $.param(extra);
        //console.log(params);
        //return;

        $.post(base_url + 'admin/super/future_ratio', params, function(data){
            if(typeof data.status == 'undefined'){
                alert(data);
            }else if(data.status == 'fail'){
                alert(data.message);
            }else{
                //console.log(data);
                alert('更新成功');
                $md.modal('hide');
            }
        });
    }