首页 > 其他分享 >报错:Uncaught SyntaxError: Private field '#xxx' must be declared in an enclosing class (at x

报错:Uncaught SyntaxError: Private field '#xxx' must be declared in an enclosing class (at x

时间:2022-11-13 20:58:35浏览次数:43  
标签:declared 22 SyntaxError xxx field 报错

报错:Uncaught SyntaxError: Private field '#xxx' must be declared in an enclosing class (at xxx.jsp:9:22)

经检查发现是由于笔者粗心原因将$("#btn")写成了${"#btn"}导致的:

 

 所以说,学习编程,最主要的还是要细心啊,当代码出现波浪线的时候或者没有只能提示的时候,

一定要看清楚是否,是应为粗心导致的错误,切记!

标签:declared,22,SyntaxError,xxx,field,报错
From: https://www.cnblogs.com/itxiaofei/p/16886894.html

相关文章