1、下载引入jQuery

2、如果是get请求,就把参数,放在url里,如果是post,就直接放在body,回调函数:收到回复消息后,自动调用回调函数。arg是回复的消息

$.ajax({

  url:'/add_classes.html',,

  type:'POST',

  data:{'username':'root','password':'123'}

  sussess:function(arg){

    //回调函数,

  }

})

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-11-06
  • 2021-10-31
  • 2022-01-16
猜你喜欢
  • 2022-02-03
  • 2021-07-21
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案