()? '':''
时间: 2023-09-10 09:09:45 浏览: 80
在这个上下文中,()?表示调用一个方法或函数。'':''表示一个三元运算符,如果条件为真,则返回前面的值,否则返回后面的值。
#### 引用[.reference_title]
- *1* *3* [[]-()-{}](https://blog.csdn.net/weixin_30916125/article/details/96932864)[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^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [$[ ] 、${ }、$( )、 [ ]、[[ ]]、(())的区别](https://blog.csdn.net/oqqHuTu12345678/article/details/129257269)[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^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文