我需要为 Alertifyjs 数字提示分配最大值和最小值。
我有这个:
alertify.prompt( 'Prompt Title', 'Prompt Message', 'Prompt Value',
function(evt, value) {
alertify.success('You entered: ' + value)
}
, function() {
alertify.error('Cancel')
}).setting({
type : 'number',
min : 8,
max : 30,
value : 8
});
但这对我不起作用。