AJAX例子

WBOY
Release: 2016-06-13 12:59:51
Original
905 people have browsed it

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

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

因为你没请求到indexAction控制器。改为:"/index/" 试试看。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template