您的位置:首页 > 运维架构 > Tomcat

apache和tomcat相结合使用实现伪静态

2011-11-25 17:46 274 查看
1、在TreePanel页面声明一个变量node
refreshButton : null,
node : null,
2、在TreePanel的click事件中添加如下代码
tree_click : function(node)
{
this.node = node
}
3、在refreshButton的刷新事件中
refreshButton_onclick : function()
{
var node = this.node;
alert(node);
if(node != null)
{
var nodepath = node.getPath();
this.root.reload();
this.expandPath(nodepath);
this.selectPath(nodepath);
}
else
{
this.treePanel.root.reload();
}
}
4、第一次点击refreshButton按钮,没错,第二次报错,但两次alert(node)的值都一样
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐