我在nginx上运行带有phusion-passenger的rails3.0.7项目.我正在做ajax,花了大约15分钟来处理.它用firebug跳出一个错误,在拨打ajax 10分钟后说"504 Gateway Time-out".
能不能让我知道如何找到问题.
谢谢,本
有谁知道如何破坏javascript(jquery)函数?我正在使用jquery"selectable",并且在可选择的"stop"事件上触发了函数调用"edit".
在这个"编辑"功能中,我有很多"点击"事件嵌套开关功能,每个"点击"事件中都有很多功能.我的问题是,每当我触发"可选"功能时,"edit"功能内的事件再次被触发,但之前的功能和事件仍然存在.我现在做的是取消绑定功能"编辑"中的每个事件在可选择的"开始"甚至.
这是内存泄漏问题吗?有没有办法在javascript中"破坏"功能?我试图在函数结束时将函数声明为null但这不起作用.其中的功能和事件仍然存在.
谁有线索?
演示页面 - > http://dreamerscorp.com/test/test01/javascript_destory_test.html
编辑2009/10/31 :)非常感谢您的帮助,您的评论对我非常有用,再次感谢!!!
嗨,我是jquery的新手,我也不是一个程序员.
我试过在谷歌搜索答案,但我找不到答案.
这是我的问题,我有一个项目列表,只有在我点击"排序"按钮后才能排序.并且我无法对项目列表进行排序.单击"确认"按钮.
我的脚本不起作用.有人可以帮忙吗?
本
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sortable test</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.3.2");google.load("jqueryui", "1.7.1");</script>
<style type="text/css">
#sortable {
list-style-type: none;
margin: 0;
padding: 0;
width: 100%;
}
#sortable li {
padding: 5px;
font-size: 1.2em;
height: 1.5em;
background:#ccc;
border:1px #333 solid;
}
html>body #sortable li {
height: 1.5em;
line-height: 1.2em;
}
.ui-state-highlight {
height: 1.5em;
line-height: 1.2em;
background:#ffcc33!important;
border:1px #ff6600 solid!important;
}
.demo{
width:200px;
margin:0 …Run Code Online (Sandbox Code Playgroud)