日期:2014-05-17 浏览次数:20537 次
<SCRIPT language=javascript type=text/javascript> $(document).ready(function(){ $("#button").click(function(){ postdata(); }); }); function postdata(){ $.ajax({ type: "POST", url: "upload.php", dataType:"html", data: "filename="+$("#filename").val(), success: function (msg){ document.getElementById("sss").innerHTML=msg; alert(msg); } }); } </SCRIPT>