??如果左表达式为null或未定义,Spider的 null-coalescing运算符将返回正确的表达式.
??
var name = options.name ?? "default name";
它是如何工作的?
javascript null-coalescing-operator spiderlang
javascript ×1
null-coalescing-operator ×1
spiderlang ×1