Ajax异步刷新的使用

来源:互联网 发布:samorost 3 mac 编辑:程序博客网 时间:2024/06/14 14:48
function chooseType(type)        {          $("#matename").html("<option value=''>请选择</option>");          if(type!="")           {          $.ajax({  url : "<%=basePath%>chooseMatetype.action?type=" + type,   type : "post",  cache : false,dataType : "json",  //返回json数据 success:function(data){                   $("#matename").append(data.str);}  });   }        }


0 0
原创粉丝点击