ReferenceDialogCheckBoxCheckBox():hasDefaultValue()✦Use with AI▾本页总览CheckBox():hasDefaultValue() 检查创建复选框时是否提供了默认答案。 签名 hasDefaultValue(): boolean 返回值 boolean - 如果向 CheckBox(id, text, defaultChecked) 传入了默认值,则为 true。 示例 local box = CheckBox(1, "Remember me")if not box:hasDefaultValue() then box = CheckBox(1, "Remember me", false)endDialog:add(box)