代码之家  ›  专栏  ›  技术社区  ›  helloandre

在cakePHP中为ajax分配选项

  •  0
  • helloandre  · 技术社区  · 17 年前

    options associated with the ajaxHelper 但是我一辈子都不知道如何将它们应用到自动完成函数中。

    ajax->autoComplete('div', 'url', array('with'=> 'console.log("hello")')) autoComplete API 谷歌搜索了一下,但找不到任何关于如何应用选项的示例或文档。

    1 回复  |  直到 17 年前
        1
  •  1
  •   dr Hannibal Lecter    17 年前

    你是对的,这里有AJAX选项。然后,这里是:

    http://api.cakephp.org/view_source/ajax-helper/#line-129

    您可以使用“选项”数组中的任何选项。