search

Home  >  Q&A  >  body text

The data controller submitted from the template form cannot be received using Request.

//Front-end data submission

$('#submit').on("click",function (event) {
alert("hao");
$.ajax( {
type: "POST",
url: "{:url('Ruku/tianjia')}",
data: $("#form-admin-add").serialize(),
dataType: "json",
success: function(data){
alert(data);
}#%2

歌神~歌神~1915 days ago982

reply all(1)I'll reply

  • ZiMing

    ZiMing2019-09-05 14:24:44

    Try changing it to the following:

    $param = $this->request->param();

    reply
    0
  • Cancelreply