ajax練習

2184 ワード

1. 

<script> 
    function q1() { 
        $.ajax({ 
            type: "GET", 
            url: "", 
            data: {}, 
            success: function (response) {  
            } 
        }) 
    } 
</script>

2.

            success: function (response) { 
                console.log(response) 
            } 

  •             console.log(msg,url)
                

  • api
    : get & post

  • 何を取るにも指名が必要だ
  • CSS = class
  • jQuery = ID
  •