ajax怎么用php获取数据,别人的站点

WBOY
Release: 2016-06-13 12:31:32
Original
986 people have browsed it

ajax如何用php获取数据,别人的站点
它站js代码:$(function(){
    $('.UserContact').after('

 ajax怎么用php获取数据,别人的站点

...

');
    $.ajax({type:'POST',url:'/Ajax/AjaxUserInfo.aspx',data:({UID:$('.UserContact').data('id')}),dataType:'html',error:function(){alert('信息加载失败')},success:function(result){
        $('.loading').remove();
        $('.UserContact').after(result);
    }});
请问我用php怎么获取它传递过来的信息
比如这个网站的地址是http://www.1.com
uid=3,id=10

如果我想用一段php代码获取它的值,完整代码怎么写

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