我有这个:
$.post("http://www.roblox.com/My/Money.aspx/GetMyTransactions", {"startindex": 20, "transactiontype": "purchase"});
而且我不知道如何“更新”页面或显示帖子中的信息。帮忙?
编辑:
我只是想知道如何更改div“TransactionsContainer”的内容
最佳答案
你可以尝试这样的事情:
<script>
$(document).ready(function(){
$.post("http://www.roblox.com/My/Money.aspx/GetMyTransactions", {"startindex": 20, "transactiontype": "purchase"}, function(result){
$("span").html(result);
});
});
</script>
<span>Result will be displayed here</span>
<小时/>
了解更多关于jQuery .post的信息
关于javascript - 在哪里显示$.post信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30019169/