<script language="javascript">
<!--
function onsub()
{
//生成新月的字符串
var nian=Number(document.all("ListBox1",0).value.substring(0,4));
var yue=Number(document.all("ListBox1",0).value.substring(4,6));
if(yue==12)
{
nian=nian+1;
yue=1;
}
else
{
yue=yue+1;
}
var stryue=""+yue;
if(yue<10)stryue="0"+stryue;
var newny=""+nian+stryue;
//判断是否已经存在
if(!(document.all("ListBox1",0).selectedIndex==document.all("ListBox1",0).length-1)) //不是最后一项
{
if(document.all("ListBox1",0).options(document.all("ListBox1",0).selectedIndex+1).text==newny)
return confirm("您将要创建数据的月份 "+newny+ " 已经有数据存在,如果继续的话,将会删除原来数据再进行创建,是否继续?");
}
return confirm("您将要创建 " +newny+" 的数据,是否继续?");
}
!-->
</script>
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有