状态保持
状态保持(keep state)是一个十分有用的命令,但很多人会在这个问题上纠缠不清,下面是我们列举过的一个例子: block in all
有许多其他特性有助于减少维护 HTTP 状态带来的风险。
But Ajax applications tend to force an application to maintain a connection to a user for long periods of time to keep applications responsive and keep state tracking easy to code.但是Ajax应用程序可能会迫使应用程序长期维持与用户的连接,这样应用程序才能进行响应并使状态跟踪代码比较容易编写。
Rules keep state to extend their context across their history of invocations, enabling decisions or computations that consider more than just the arguments passed on the current invocation.规则可通过保存状态来将其上下文扩展到整个调用历史,支持依据传递到当前调用的参数之外的其他因素进行决策和计算。