jquery post传参?

function search(){

// var data=$('.modal').serializable();
$.ajax({
    url:'http://145.78.155.348:84/recruitment/Recruit,
    type:'post',
    dataType:'json',
    data:{
            index:1,
            pageSize:4,
           name:$('#name').val(),
 
        },
    success:function(){
        console.log('asgdh');
        alert('success')
     
    },
    error:function(){
        console.log('dfffg');
       
    }
})

}
post是这样传参吗

阅读 1.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题