js域问题

xiaochengfu1 xiaochengfu1 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
var detail=true;
var conn = new Ext.data.Connection({
method: 'POST',
url: 'SysCfg'
});
conn.request({
success: function(response) {
var data = Ext.util.JSON.decode(response.responseText);
detail=data.properties[0].detail;
alert(detail+"111");
},
failure: function(response) {
Ext.MessageBox.hide();
Ext.Msg.show({title: '错误', msg: response.statusText, buttons: Ext.Msg.OK, icon: Ext.MessageBox.ERROR});
}
});
alert(detail);


怎么会先弹出下面这个alert,而且获取不到从后台得到的值,是js域的问题吗?应该怎么解决
...全文

相关推荐

评论 9
收藏 已收藏
分享
返回顶部
xiaochengfu1
Web 开发 81,108 成员 341,721 内容