Ajax没有发送POST [英] Ajax not sending a POST

查看:54
本文介绍了Ajax没有发送POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

echo '<head>
			<script type="text/javascript">
			function Application'.$col1.'() {
				$.ajax({
					url: "?page=acp_apps_check",
					type: "post",
					data: {capp:'.$col1.'},
					success: function(){
						alert("a");
					}
				});
			}
			</script>
			</html></head>';





当它被调用时,它说警告''a''但是没有前进或者当选中''capp''时没有定义。



When its called, it says in alert ''a'' but dosen''t forward or when checked the ''capp'' is not defined.

推荐答案

col1。' (){
col1.'() {


.ajax({
url:?page = acp_apps_check,
类型:post,
数据:{capp:'。


col1。' },
成功:function(){
alert(a);
}
});
}
< / script>
< / html>< / head>'
;





当它被调用时,它说警告''a''但是没有前进,或者在检查时''capp''没有被定义。



When its called, it says in alert ''a'' but dosen''t forward or when checked the ''capp'' is not defined.


这篇关于Ajax没有发送POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆