我有一段代码,在这里我提出了警告:
func arraysize() -> [Int]? {
let title = "Your file is empty"
let message = "Please refer to the instructions"
let okText = "OK"
let alert = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.Alert)
我有一个警告脚本,它显示给那些在表单输入中没有下划线的用户(例如888_1132)。
因为我不能从警报中删除'OK‘按钮,所以当单击'OK’按钮时,我希望刷新页面。
function myFunction()
{
alert("Click 'OK' to refresh this page");
}
我能用警报按钮做这个吗?提前谢谢。