以下代码中function(msg)是什么意思? 而且这个function(msg) 后面为何没有 “);”?
为何 “);” 跑到了第12行?1 if
2 {
3 office.getCheckTime(item,document.form1.users.value,form1.buydate.value,form1.buydateLate.value,function(msg)
4 {
5 if(msg!="0")
6 {
7 alert(msg)
8 return;
9 }
10 document.form1.submit();
11 }
12 );
13 }
为何 “);” 跑到了第12行?1 if
2 {
3 office.getCheckTime(item,document.form1.users.value,form1.buydate.value,form1.buydateLate.value,function(msg)
4 {
5 if(msg!="0")
6 {
7 alert(msg)
8 return;
9 }
10 document.form1.submit();
11 }
12 );
13 }
你要看的是office.getCheckTime这个方法怎么写的,就清楚了
第 12 行的 ); 不是 function(msg) 函数这一部分的,而是和 office.getCheckTime( 中的 ( 对应的。