Lapisan elastik+$.post tidak boleh mendapatkan data. Tolong bantu saya!
王岁洋
王岁洋 2017-10-27 10:46:47
0
1
935


//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>

王岁洋
王岁洋

membalas semua(1)
lmaster

($ .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'

});

},


});
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan