search
Homephp教程php手册新手,跨域查询订单

通过接口实现
<meta> <br> <input>2015br/><br><br><br> <input>订单号<br><br> <input><br> <div> <br> <table> <br>     <tr> <br>         <td>订单号</td> <br>         <td>派送方式</td> <br>         <td>派送时间</td> <br>         <td></td> <br>     </tr> <br>     <tr> <br>         <td><span></span></td> <br>         <td><span></span></td> <br>         <td><span></span></td> <br>         <td><span></span></td> <br>     </tr> <br> </table> <br> </div> <br> <div></div> <br> <br> <br> <script></script><br> <script><br /> function a(){<br /> var much = $("#much").val();<br /> $.ajax({<br /> url:"http://www.myhtml.com/a.php?id="+much,<br /> type:&#039;GET&#039;,<br /> dataType:&#039;jsonp&#039;,<br /> jsonpCallback:&#039;show&#039;,<br /> success:function(a){<br /> //alert(a.much)<br /> if(a.much == undefined){<br /> $("#muc").html(a.error)<br /> }else{<br /> $("#muc").html(a.much);<br /> $("#type").html(a.type);<br /> $("#tim").html(a.tim);<br /> }<br /> }<br /> })<br /> }<br /> <br /> function b(){<br /> //alert("123")<br /> var much = $("#much").val();<br /> //alert(much)<br /> $.ajax({<br /> url:"http://www.myhtml.com/b.php?id="+much,<br /> type:&#039;GET&#039;,<br /> dataType:&#039;jsonp&#039;,<br /> jsonpCallback:&#039;show&#039;,<br /> success:function(a){<br /> $("#goodsname").html(a.goodsname);<br /> }<br /> })<br /> }<br /> <br /> function fun5(page){<br /> $.ajax({<br /> url:"http://www.myhtml.com/c.php?id="+2015+"&page="+page+"&num="+3,<br /> type:&#039;GET&#039;,<br /> dataType:&#039;jsonp&#039;,<br /> jsonpCallback:&#039;show&#039;,<br /> success:function(a){<br /> var op = "";<br /> $.each(a,function(index,val){ // 解析出data对应的Object数组 <br /> //alert()<br /> op+="<li>订单号:"+val.much+"  派送方法:"+val.type+"  派送时间:"+val.tim+"";<br /> });<br /> op = "<ul>"+op+"";<br /> $("#show").html(op)<br /> <br /> }<br /> })<br /> var page = "<a href=&#039;javascript:void(0)&#039; onclick=&#039;fun5("+(page-1)+")&#039;>上一页  <a href=&#039;javascript:void(0)&#039; onclick=&#039;fun5("+(page+1)+")&#039;>下一页";<br /> $("#page").html(page);<br /> }<br /> <br /> </script> 

AD:真正免费,域名+虚机+企业邮箱=0元

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.