js带参数get提交到php
const ShowAppListRequest = new XMLHttpRequest(); const url = `getApps.php?uid=${encodeURIComponent(uid)}`; ShowAppListRequest.open("GET", url); ShowAppListRequest.onload = function() { if(ShowAppListRequest.status === 200) { console.log(ShowAppListRequest.responseText) } } ShowAppListRequest.send();
浙公网安备 33010602011771号