javascript - javascript中的问号后跟句号是什么意思?
问题描述
我不知道是什么?.
意思。例子:
React.useEffect(() => {
if (route.params?.post) {
// Post updated, do something with `route.params.post`
// For example, send the post to the server
}
}, [route.params?.post]);
很难用谷歌搜索答案。我只看到有关条件(三元)运算符的文章。
解决方案
推荐阅读
- discord.py-rewrite - Discord.py 货币系统
- arrays - 快速将一个数组中的元素链接到另一个数组中的元素
- ruby-on-rails - Ruby 如何检测字符串中的回车?
- rest - 对于将 HTTP/JSON 转码为 gRPC,如何为枚举指定查询参数
- python - 尝试创建一个简单的成绩簿程序
- wpf - PublicClientApplication - AcquireTokenInteractive - 组成员
- javascript - 如何检查聊天机器人打开后的秒数?
- c++ - 宏的受控鼠标加速
- python - 使用多线程的 OpenCV python 运行两个视频
- r - 将列添加到 Rcpp::DataFrame 正在回退到列表