请看下面的代码:
new Ajax.Updater('results',this.action,{
method:'post',onComplete:oncomplete,parameters:this.serialize(),evalScripts:true
});
我们使用post method,为什么不是‘get’? 因为‘get’ method 会使用缓存技术,但有时候我们想使用no-cache,而使用‘post’ method 可以解决这个问题.
请看下面的代码:
new Ajax.Updater('results',this.action,{
method:'post',onComplete:oncomplete,parameters:this.serialize(),evalScripts:true
});
我们使用post method,为什么不是‘get’? 因为‘get’ method 会使用缓存技术,但有时候我们想使用no-cache,而使用‘post’ method 可以解决这个问题.