我在Console中遇到以下错误:
未捕获类型错误:$.post不是一种功能
对于这段代码:
<script type="text/javascript">
$('#cl_submit').click(function() { //#cl_submit is a button
$('#cl_stage1msg').html('Processing...');
$.post("process/cookie.php", $("#cl").serialize(), function(response) { //#cl is a form
$('#cl_stage1msg').html(response);
});
return false;
});
</script> <!-- popup included -->
我就是找不到这里面有什么不对劲的地方.为什么这不管用,有什么线索吗?
However, $('#cl_stage1msg').html('Processing...');
is working fine.
似乎只有POST功能没有被识别.