我在控制台中收到此错误:
未捕获的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 -->
Run Code Online (Sandbox Code Playgroud)
我在这里找不到任何错误.为什么这不起作用,任何线索?
但是,$('#cl_stage1msg').html('Processing...');工作正常.
似乎只有post功能没有得到认可.