6

“鸣蛇”再添新功能:空值合并

 3 years ago
source link: https://www.v2ex.com/t/800871
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
“鸣蛇”再添新功能:空值合并 - V2EX

https://github.com/abersheeran/mingshe

写过 JavaScript 的人应该很熟悉的 ?? 运算符。a ?? b 等价于 a if a is not None else b

预计还会增加 JavaScript 里的 ?. 操作符,但还在考量之中。欢迎大家使用、提意见。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK