【问题标题】:Is this correct about ajax POST?这对 ajax POST 是否正确?
【发布时间】:2010-05-07 05:26:09
【问题描述】:

您能否确认我正确理解this

但是,请始终使用 POST 请求 什么时候:

- A cached file is not an option (update a file or database on the

服务器)

使用 POST,xmlhttp.open("POST","ajax_test.asp",true); 中指定的文件 不会被缓存(发送到\Temporary Internet Files)?它只会留在服务器上?

如果是这样,调用ajax POST 后更新的html 文件是否在\Temporary Internet Files 中更新?

我是否遗漏了该机制的任何其他重要信息?

谢谢。

【问题讨论】:

  • 最好引用页面而不是链接到它。如果链接到的页面关闭,则问题将不完整。

标签: javascript jquery html ajax


【解决方案1】:

正确假设如果您使用 POST,您的调用中有 GET。

xmlhttp.open("POST","ajax_test.asp",true);

【讨论】:

    猜你喜欢
    • 2019-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-24
    • 1970-01-01
    • 1970-01-01
    • 2019-08-06
    • 2013-03-07
    相关资源
    最近更新 更多