如何编写我的XMLHttpRequest的网址,以便我可以发送我的数据到我的控制器。我现在所拥有的是: var data = `post=${post}`;xhr.open("POST" , "<?= Router::url(array('controller'=>'posts','action'=>'add')) ?
我有一个关于修改responseText of xmlhttprequest的问题。index.html将一个xmlhttprequest(req)发送给b.php,(index.html和b.php都放在测试文件夹中)$data=file_get_contents($url);
header('Content-type: video