Alert.buttonWidth = 100;//多于两个按钮时,需要设置宽度
Alert.yesLabel = "Cool";
Alert.noLabel = "Lame";
Alert.cancelLabel = "Never Mind";
Alert.show("Do you want to save your changes?","Save Changes",1|2
注意的是:Alert.show是一个静态的方法 所以要设置 里面按钮的 宽度等要在Alert.show调用之前设置
Alert.yesLabel = "Cool";
Alert.noLabel = "Lame";
Alert.cancelLabel = "Never Mind";
Alert.show("Do you want to save your changes?","Save Changes",1|2
注意的是:Alert.show是一个静态的方法 所以要设置 里面按钮的 宽度等要在Alert.show调用之前设置