我正在尝试使用以下帖子请求中的普通javascript替换所有jQuery依赖项。
<script type="text/javascript">
$(function()
{
$.post("test_post.php",
{
name: "John Doe",
age: "42"
},
function(data, textStatus)
{
alert("Response from server: " + data);
});
});
</script>
任何想法如何?
答案 0 :(得分:0)
你可以玩,但这是基本的例子:
header()