Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于时间的问题 #29

Open
2020654600 opened this issue Jun 13, 2018 · 5 comments
Open

关于时间的问题 #29

2020654600 opened this issue Jun 13, 2018 · 5 comments

Comments

@2020654600
Copy link

老哥,我是刚开始学习这个东西的。。。我就把你的代码给稍微改了一下,我就想知道你的那个时间怎么修改。。我研究了半天也没有研究到。

@2020654600
Copy link
Author

我和我的女朋友是2018年6月3日开始在一起的。结果我把时间更改了之后就成了负数。然后我就开始找里面的另外一个时间。。结果没找到

@ljy19930131
Copy link

@2020654600 js 计数是从0开始的,也就是说你们2018.6.3认识的话,你的代码应该是together.setFullYear(2018, 5, 3);

@2020654600
Copy link
Author

@ljy19930131 刚刚更改了一下,确定没问题了

1 similar comment
@2020654600
Copy link
Author

@ljy19930131 刚刚更改了一下,确定没问题了

@conanluffy
Copy link

JavaScript的月份是从0开始的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants