我在控制台中收到此错误:
未捕获的TypeError:$ .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 -->
我只是找不到任何错误。有什么线索,为什么这不起作用?
然而, $('#cl_stage1msg').html('Processing...');工作正常。
似乎只有post函数没有被识别。