Browserify won't compile with Date lines
Browserify won't compile with Date lines
我的JavaScript中的这两行似乎阻止了Browserify编译。这两行是:
$( "#check_in" ).datepicker({ minDate: new Date(2015,08,27), maxDate: new Date(2015,09,03) });
$( "#check_out" ).datepicker({ minDate: new Date(2015,08,27), maxDate: new Date(2015,09,03) });
有人知道为什么会出现这个错误吗?在解析文件时,我得到的错误是无效号码(39:61):
有人知道为什么会出现这个错误吗?
前导0
表示八进制数字字面值。有效数字为0 ~ 7。因此,08
无效。
移除导联0
s
还请记住,Date
使用从零开始的月份,因此8月将是7
,而不是8
。
相关文章:
- Fighting with FRP
- issue with FB.Event.subscribe
- geolocation-marker.js conflict with markerclusterer.js
- Angular 2.0 with JavaScript or TypeScript?
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- WebComponentsJS with IE10
- 指令的模板必须只有一个根元素:With restrict E&替换true
- 错误:[$compile:nonassign]表达式'未定义'与指令'内容可编辑'是不可
- timeago.js with datatable and PHP
- Ajax and Json with Rails
- errors with Javascript try catch
- how to split a string with ','
- Understanding Javascript scope with "var that = this&qu
- Architecture for CPU intensive tasks with NodeJS & Socke
- 在什么情况下需要同时使用compile&链接函数的角度
- How to declare a Map containing certain properties with flow
- 设置'这'在React with Inverse Data Flow中
- Unit-testing multiple use cases with Karma & Mocha.js
- AngularJS : $compile with nested ng-repeat
- Browserify won't compile with Date lines