【问题标题】:xmlHttpRequest.open() (Ajax) -> use a PHP method as "URL"-parameterxmlHttpRequest.open() (Ajax) -> 使用 PHP 方法作为“URL”参数
【发布时间】:2014-02-25 19:32:43
【问题描述】:

是否可以从xmlHttpRequest.open() 中调用PHP 方法(来自类)?

xmlHttpRequest.open("GET",$class->method, true);

谢谢

【问题讨论】:

  • 不是直接不行,而是另外创建一个php文件调用这个方法。

标签: php ajax parameters xmlhttprequest


【解决方案1】:

没有。您必须编写一个 PHP 脚本来加载该类并调用该方法。

【讨论】:

  • +1,直接回答。
【解决方案2】:

点击链接,您将了解 ajax 的工作原理。Ajax

【讨论】:

    猜你喜欢
    • 2017-10-04
    • 2017-09-07
    • 1970-01-01
    • 2015-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-04
    相关资源
    最近更新 更多