当前位置:编程学习 > C#/ASP.NET >>

ASP 提示不起做用?求解

var gzjhgl_inProgress = 0;//拖期或进行中工作计划数目
var gzjhgl_outofdate = 0;
var gzjhtask = {
    run: function(){
        Ext.Ajax.request({
            url:'/GZJH/data/GetAlertNum_data.asp',
            success: function(r){
                if(r.responseText.length>0)
                {
                    try{
                        var o = Ext.decode(r.responseText);
                        Ext.each(o.rows,function(r){
                            if(r.status == "进行中"){
                                gzjhgl_inProgress = r.num;
                            }else{
                                gzjhgl_outofdate = r.num;
                            }
                            var nodejh = Ext.getCmp("left-tree").getNodeById(107);
                            if(nodejh){
                                if((gzjhgl_inProgress + gzjhgl_outofdate) > 0){
                                   //nodejh.ui.highlight("ff0000", { attr: 'background-color', duration: 3 });
                                   nodejh.setText("部内工作计划(<b><font color=red face=黑体>"+gzjhgl_inProgress+"," + gzjhgl_outofdate + "</font></b>)");
                                   nodejh.attributes.qtip="正在进行:"+gzjhgl_inProgress+",已拖期:"+gzjhgl_outofdate;
                                }else
{
                     nodejh.setText("部内工作计划");-----------此处提示不起作用,求解?????
                                }
                            }//if nodejh
                        },this);//each
                    }catch(err){}
                }
            }
        });
    },
    interval:5000
};
--------------------编程问答-------------------- 此句上面的if的另一个分支 设置的文本能生效么?

补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,