简体中文
外观
UIAlertAction
title
title 属性是弹窗按钮上的字。
字符串。
TypeError
actionWithTitle()
null
undefined
const ok = UIAlertAction.actionWithTitle('知道了', { style: 'default' }); console.log(ok.title);
结果:控制台输出 知道了。
知道了
UIAlertAction.title。
UIAlertAction.title
style