0
在按钮点击我有简单jQuery post:jQuery.post()不通过?
$(document).ready(function() {
$.post("/cgi-bin/stats.exe");
});
然而,似乎没有任何要经过到服务器端。有什么建议么?
谢谢。
在按钮点击我有简单jQuery post:jQuery.post()不通过?
$(document).ready(function() {
$.post("/cgi-bin/stats.exe");
});
然而,似乎没有任何要经过到服务器端。有什么建议么?
谢谢。
将它附加到文档准备事件。相反,你应该附上你的按钮。
$(document).ready(function() {
$('#myButtonId').click(function(){
$.post("/cgi-bin/stats.exe");
});
});