eclipse - Eclipse:令牌“catch”上的语法错误,需要标识符
问题描述
我正在为我的 Web 应用程序尝试 Firebase 连接,但代码不断在catch
关键字上显示错误。
这是我的代码,在登录屏幕的登录功能下:
firebase.auth().signInWithEmailAndPassword(userEmail,userPassword).catch(Exception) {};
解决方案
推荐阅读
- html - 如何使用 css 选择器在某个元素之后查找元素
- reactjs - 在本地存储中保存崩溃状态
- typescript - 如何在 TypeScript 中编写计划函数来重置 Firebase 实时数据库中所有用户的 userHighScore?
- drupal - Drupal 8 和样式表
- python - 分配给函数的整数 Input() 变量
- python - 为什么这种格式无效?
- wpf - MenuItems 在不同系统上的图标大小变化
- c++ - 密码管理器每次都会增加密码大小
- python - 为什么我不能在函数内部使用 vars() 来处理函数外部的变量?
- python - 使用嵌套数组打印嵌套 OrderedDict 中键和值的所有路径