一般情况下 后台传回JSON字串
前端收到以后先转成json 对象 然后遍历取出 数值 刷新页面组件...
var jsonOprtInfo;
Ext.Ajax.request({
url: "php/tools/get_user_tips.php",method: 'POST',async : false,scope: this,
success: function(response, options) {
jsonOprtInfo = Ext.util.JSON.decode(response.responseText);
document.getElementById("top_user").innerHTML = "
用户:" + jsonOprtInfo.OprtPowerInfo.OprtNo +" |
组:" + jsonOprtInfo.OprtPowerInfo.OprtName +" |
退出 |
" "这个整体不含引号就代表一个空格,多个空格只需复制黏贴就OK了。祝你好运!