HBuilderX: 4.74.2025063012-alpha
OS: OSX 11.7.10
编译的时候,老是报此错误error: 'if' must have both main and 'else' branches if used as an expression
举例:
if (typeof temp == "string") {
}
else {
}
HBuilderX: 4.74.2025063012-alpha
OS: OSX 11.7.10
编译的时候,老是报此错误error: 'if' must have both main and 'else' branches if used as an expression
举例:
if (typeof temp == "string") {
}
else {
}
1 个回复
DCloud_UNI_JBB
升级到最新版本的hx试试还有没有问题,你的例子我运行到没报错。