Java/Spring

Spring #14

DGeon 2023. 4. 4. 09:09
  • $.ajax
    • url (string)
      • 값을 기입하지 않으면 현재 페이지
    • dataType
    • method (string)
      • 기본값은 GET,
    • success
      • function
    • error
      • function
    • complete
      • success와 error 모두 처리한 뒤에 실행 되는 것
      • function
    • dataType(string)
      • XML, json,
    • data(object or string)(전송시 파라미터)
    • nullish
    • $.getJson()(줄인표현)
      • url[,data][,sueccess]
      • .done(second sueccess
    • $.post
    • replyService.get(46, function(data){console.log(data)})