jquery里使用ajax的问题。。。怎么没反应啊。。
代码如下,刚开始成功弹出alert内容。后来不知道怎么没反应了?同目录下有sql.txt文件。请问哪错了啊?是在找不到。晕~~~~~~~~<scripttype="tex...
代码如下,刚开始成功弹出alert内容。后来不知道怎么没反应了?同目录下有sql.txt文件。请问哪错了啊?是在找不到。晕~~~~~~~~
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$.ajax({
type: "POST",
contentType:"pplication/x-www-form-urlencoded; charset=GB2312",
url: "sql.txt",
data: {},
success: function(msg){alert(msg);}
});
</script> 展开
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$.ajax({
type: "POST",
contentType:"pplication/x-www-form-urlencoded; charset=GB2312",
url: "sql.txt",
data: {},
success: function(msg){alert(msg);}
});
</script> 展开
2个回答
2013-12-30
展开全部
contentType:"pplication/x-www-form-urlencoded; charset=GB2312", //少了个A,Application?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询