【发布时间】:2011-11-16 05:40:56
【问题描述】:
我的 grails 类中有一个数组
class BootStrap {
def init = { servletContext ->
def myArray = ["Aug 2011","111.0"]
new IndexValue (indexDate: new Date (),value: 100).save(flush:true)
assert IndexValue.count()==1
}
def destroy = {
}
}
现在在我的javascript中我有这个值
var endDate = month + ' ' + endDate.getFullYear();
我只需要检查这个endDate是否与我上面数组中的日期相同,如果有这个日期,只需提醒date is present
【问题讨论】:
标签: javascript grails groovy