cari

Rumah  >  Soal Jawab  >  teks badan

Lapisan elastik+$.post tidak boleh mendapatkan data. Tolong bantu saya!


//Lihat kod

<a href="javascript:;" title="Modify" onclick="update_column({$vo.column_id})"><span class="glyphicon glyphicon-pencil "></span></a>


//js dengan kod//Ubah suai lajur

function update_column(id){
$.post("{:url('admin/update_column')} ",{id:id});
layer.open({
type: 2 //Jenis lapisan halaman
,luas: ['500px', '220px']
,title: 'User added'
,shade: 0.6 //Ketelusan topeng
,maxmin: true //Benarkan pengecilan skrin penuh
,anim: 1 //Borang animasi 0-6, -1 tidak didayakan
,kandungan: 'update_column.html'
});
}

//Pengawal dengan kod

lajur kemas kini fungsi awam(Minta $permintaan){
$date=$request->param('id');
$list=Book_column::get($date);
$ this ->view->assign('list',$list);
return $this->view->fetch();
}


//Tetingkap timbul

<div class= " panel panel-default">
<div class="panel-body">
<form class="form-horizontal" role="form">
<div class="form-group" > ;
                                                                                                                                                                                                                                  type="text" class="form-control" name="column_name" id="firstname"
                                                                                             … <div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
                                                                                                                                                                                                                                                                                                                    ,,,                                ;
</form>
</div> ;
</div>

王岁洋王岁洋2618 hari yang lalu974

membalas semua(1)saya akan balas

  • lmaster

    lmaster2017-10-27 11:04:49

    ($ .Post ("{: url ('admin/update_column')}", {id: id});

    $ .post ({

    url: "url ('admin/update_column')",


    Jenis: 2 // Page Layer Type

    '500px', '220px']

    , Maxmin: True // Benarkan Minimization Screen Full
    ,,,, Anim: 1 // Borang Animasi 0-6, - 1 Jangan hidupkan, Kandungan: 'Update_column.html'

    });

    },


    });

    balas
    1
  • Batalbalas