我会这样写: if message.length .alert.alert-danger= message ...由于 message 是字符串,因此 message.length 仅在为空字符串时才计算为假值(0)。
確定! 回上一頁