$.ajax传数据.php

function summit () {

  var n = $("#CC").val();

    alert (n);

      $.ajax({

      url:"main.php?name="+n,

      type:"GET",

      dataType:"txt",

      //data:$("form").serialize()

      success:function(data);

      },

      error:function(){

        alert("error")

      }

    })

posted on 2017-03-24 13:22  aivnfjgj  阅读(83)  评论(0)    收藏  举报

导航