我收到上述錯誤。我檢查了我的語法。代碼中似乎沒有任何遺漏。1 <script language="javascript" type="text/javascript"> 2 $(document).ready(function(){ 3 4 $('#submit').on('click',function(){ 5 var from_date = $('#from_date').val(); 6 var to_date = $('#to_date').val(); 7 $.ajax({ 8 type:'POST', 9 url:'date_based_report_action.php', 10 data:'from_date='+from_date+'&to_date='+to_date, 11 success:function(html){ 12 alert(html); 13 $('#tabledata').html(html); 14 } 15 }); 16 } 17 }); 18 </script>當我檢查控制臺時,錯誤顯示在第 16 行。
Uncaught SyntaxError: missing ) 在參數列表之后即使代碼是正確的
慕蓋茨4494581
2022-10-09 20:16:26