Uncaught SyntaxError: Unexpected token '<' (at webVideoCtrl.js:1:1)
时间: 2023-08-27 22:17:06 浏览: 166
webVideoCtrl.js
4星 · 用户满意度95%
这个错误是由于在webVideoCtrl.js文件的第一行第一列发现了意外的字符'<'引起的。根据引用的资料可以看到类似的错误。第一个引用中提到了"Uncaught SyntaxError: Unexpected token '<'"这个错误。第二个引用也提到了类似的错误,即"Uncaught SyntaxError: Unexpected token ‘<'"。第三个引用给出了解决方法,即在引入路径开头加上`<%= BASE_URL %>`。因此,解决这个问题的方法是在webVideoCtrl.js文件中的引入路径开头加上`<%= BASE_URL %>`。例如,将引入路径修改为`src="<%= BASE_URL %>webVideoCtrl.js"`。这样做可以确保正确的引入js文件并避免出现语法错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vue项目报错:Uncaught SyntaxError: Unexpected token ‘<‘ (at TrackAnimation.min.js:1:1)](https://blog.csdn.net/weixin_65793170/article/details/128481662)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Uncaught SyntaxError: Unexpected token ‘<‘ (at chunk-vendors.js:1:1) app.js:1 Uncaught Syntax...](https://blog.csdn.net/weixin_44283432/article/details/128252078)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [报错问题:Uncaught SyntaxError: Unexpected token < (at echarts.min.js:1:1)](https://blog.csdn.net/weixin_53791978/article/details/125064866)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文