Syntax error, insert ")" to complete Expression
时间: 2023-11-21 17:06:28 浏览: 172
检查中缀表达式并报错
5星 · 资源好评率100%
这个错误是由于在代码中缺少一个")"导致的语法错误。根据引用\[2\]中的描述,这个错误是在JavaScript代码中出现的。具体来说,错误出现在以下代码中:`onclick=javascript:expand(2)`。在这段代码中,缺少了双引号,应该修改为`onclick="javascript:expand(2)"`。这样就能解决这个语法错误了。
#### 引用[.reference_title]
- *1* [Syntax error, insert “;“ to complete Statement 报错](https://blog.csdn.net/Y12XJ/article/details/116726655)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Type Syntax error, insert ")" to complete Expression](https://blog.csdn.net/coding_1994/article/details/83049697)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文