ready function laydatehint日期可选值设定在 br +appliTimeLimit0 +到+ appliTimeLimit1; 显示Uncaught SyntaxError Unexpected identifier ready
这个错误是因为代码中的语法错误。在JavaScript中,代码块(比如函数)应该以大括号({})来包围。
在给定的代码中,ready函数的大括号似乎缺失了。可以尝试将代码修改为以下形式:
ready: function(){
laydate.hint('日期可选值设定在 <br> '+appliTimeLimit[0] +'到'+ appliTimeLimit[1]);
}
这样就会修复该错误。
原文地址: http://www.cveoy.top/t/topic/h03G 著作权归作者所有。请勿转载和采集!