<button type="button" onclick="chayichakuaidi()">查快递</button>
<script>
function chayichakuaidi() {
$.ajax({
url: 'https://express.baidu.com/express/api/express?tokenV2=kcRbzkbZNXBN3Ic0w2j1yYHihsf4JnOxk4DWcg864iVq2eBwsffrRl02t00ezrzH&nu=YT6066427611181',
async: false,
type: "GET",
dataType: 'jsonp',
jsonp: 'callback',
success: function (result) {
console.log(result);
}
});
}
</script>
我写了PHP后端也没搞定这个,还有没有其他方法