三元表达式

 const notLicenseNo = param.notLicenseNo == true ? 1 : 0
原文地址:https://www.cnblogs.com/lml-lml/p/9304045.html