<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
/*
3
如果编号等于1,就弹出提示 正常
等于2,弹出提示 展期
等于3,弹出提示 逾期
等于4,弹出提示 终止
if(state=='1'||state=='2'){
$.notify.info('非编制状态,不可编辑!');
}
*/
var num = prompt('请输入编号信息:');
if (num == 1) {
alert('正常');
}
else if (num == 2) {
alert('展期');
}
else if (num == 3) {
alert('逾期');
}
else if (num == 4) {
alert('终止');
}
</script>
</hea
JavaScript 项目实战01--判断编号正常? 终止?
猜你喜欢
转载自blog.csdn.net/chenggong9527/article/details/123637370
今日推荐
周排行