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)的值都一样
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)的值都一样
相关文章推荐
- apache和tomcat相结合使用实现伪静态
- apache和tomcat相结合使用实现伪静态,同时把静态文件从工程里分离开(一)
- apache和tomcat相结合使用实现伪静态,同时把静态文件从工程里分离开(一)
- apache和tomcat相结合使用实现伪静态,同时把静态文件从工程里分离开(二)
- apache和tomcat相结合使用实现伪静态,同时把静态文件从工程里分离开
- apache+tomcat 同时使用 RewriteRule 和 ProxyPass 实现静态网址转 tomcat处理
- Apache整合Tomcat实现静态资源与动态资源分离
- 使用Apache通过JK实现多Tomcat负载均衡集群时,Apache不能将请求分发给Tomcat处理(即Apache反向代理不成功)的问题
- Apache+tomcat使用mod_proxy做动静态分离
- Apache整合Tomcat实现静态资源与动态资源分离
- Apache服务器中使用.htaccess实现伪静态URL的方法
- Base64编码实现二---使用org.apache.tomcat.util.codec.binary.Base64实现Base64
- Nginx+LAT(apache+tomcat)的实现和使用memcached保存tomcat的session会话 推荐
- 使用nginx+tomcat实现静态和动态页面的分离
- 使用Apache通过JK实现多Tomcat负载均衡集群实现总结及自己的感悟
- 使用php 的缓冲区功能和apache的url重写功能实现静态html生成实例
- Linux下使用Apache实现域名转发(Tomcat/JBOSS)
- 使用apache和nginx代理实现tomcat负载均衡及集群配置详解
- 使用apache和nginx代理实现tomcat负载均衡及集群配置详解
- 使用apache代理tomcat集群并实现session复制