Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] discuz x3 插件中调用ajax 问题

[复制链接]
angelr 发表于 2013-5-30 22:24:04 | 显示全部楼层 |阅读模式
<script language="javascript">

function countryChange(){
   alert('test');
    $.ajax({
        url : "admin.php?action=plugins&operation=config&do=10&identifier=demo&pmod=ajaxtest&handle=test",
        type: "GET",
        data :{country:"test"},
        dataType : "json",   
        cache : false,   
          error : function(XMLHttpRequest, textStatus, errorThrown) {   
            alert("error: " + XMLHttpRequest.status+' '+textStatus);   
          },   
          success : function(data, textStatus) {
              alert(data);
          }
    });
     
}
提交后 alert(data); 没值。 在非discuz 项目中使用时正常的。各位大侠. 帮忙啊

</script>
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 19:44 , Processed in 0.110525 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表