When using wampServer, the php file cannot be obtained through ajax

want to get php resources locally, so install wampServer, and create your own project under the www file

clipboard.png
index.html
index.htmlajaxdata1.php


php;


clipboard.png

network

clipboard.png

but it cannot be obtained in data in ajax, and fail
how can I get the data in php correctly?

Mar.14,2021

your PHP code is wrong. It should be

.
//
echo "","<br/>";
//
echo ""."<br/>";

so your console reported the wrong'>';

clipboard.png

Menu