我只是无法理解它。我需要在我的 php 文件中写什么才能将某些内容返回给$.post
函数?
<script type="text/javascript">
function SubmitToDatabase(uName, uComment)
{
$.post("write_something_to_mysql_b.php", {name: uName, comment: uComment});
return false;
}
</script>
这有效,但 PHP 文件没有返回值