上传图片的问题
ajax.js
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><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>