请告诉我 是否可以在jquery日期选择器中禁用2015年之前的所有年份
我尝试过使用
Traceback (most recent call last):
File "malt.py", line 13, in <module>
print mp.raw_parse("Hello World")
File "/usr/local/lib/python2.7/dist-packages/nltk/parse/malt.py", line 139, in raw_parse
return self.parse(words, verbose)
File "/usr/local/lib/python2.7/dist-packages/nltk/parse/malt.py", line 126, in parse
return self.parse_sents([sentence], verbose)[0]
File "/usr/local/lib/python2.7/dist-packages/nltk/parse/malt.py", line 114, in parse_sents
return self.tagged_parse_sents(tagged_sentences, verbose)
File "/usr/local/lib/python2.7/dist-packages/nltk/parse/malt.py", line 194, in tagged_parse_sents
"code %d" % (' '.join(cmd), ret))
Exception: MaltParser parsing (java -Xmx1024m -jar /usr/local/bin/malt.jar -w /other/apps/maltparser-1.8.1 -c engmalt.poly-1.7.mco -i /other/apps/maltparser-1.8.1/malt_input.conlljOba1P -o /other/apps/maltparser-1.8.1/malt_output.conllPLcoTu -m parse) failed with exit code 1
答案 0 :(得分:2)
使用minDate
。
$(function() {
$( "#datepicker" ).datepicker({
minDate: "01/01/2015",
changeMonth: true,
changeYear: false
});
});
答案 1 :(得分:2)
希望这有帮助。
$(function() {
$( "#datepicker" ).datepicker({
minDate: new Date(2015, 01, 1), dateFormat: 'dd/mm/yy', maxDate: new Date(2015, 12, 31)
});
});