此代码有什么问题?
if(Year(rs.Fields(created_date)) == Year(Now) AND Month(rs.Fields(created_date)) == Month(Now) AND Day(rs.Fields(created_date)) >= Day(Now) +3) {
它说,错误的语法。我该怎么做呢?
答案 0 :(得分:0)
运营商为And
,而不是&&
:
>> If True && False Then
>> WScript.Echo "&& is not VBScript"
>> End If
>>
Error Number: 1002
Error Description: Syntax error
>> If True And True Then
>> WScript.Echo "&& is And"
>> End If
>>
&& is And
第二眼看:VBScript不是Javascript(==,{})。