Home  >  Article  >  Backend Development  >  AJAX例子

AJAX例子

WBOY
WBOYOriginal
2016-06-13 12:59:51888browse

求一个AJAX例子
RT 百度谷歌我是真找不到阿
要求双击

之后js 取其中内容 传给php 中 作为自定义变量$name的内容,要用zf框架
万分感谢了
------解决方案--------------------
  $.post("/index/get", {title:title}, function(json){
            // do something
            alert(json.title);
        }, 'json');

因为你没请求到indexAction控制器。改为:"/index/" 试试看。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn