当前位置:网站首页>[debug bug] JS: getFullYear is not a function
[debug bug] JS: getFullYear is not a function
2022-07-25 23:37:00 【Small_ xiuxiu】
Report errors ,getFullYear is not a function
Original error code :
this.formatFun = function(time) {
var year = time.getFullYear();
var month = time.getMonth()+1;
var date = time.getDate();
var hour = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
return year+' year '+month +' month ' + date +' Japan ' + hour +':' + minutes+':'+ seconds
}
reason :js This sentence is missing from the method called :
var time = new Date(time);
边栏推荐
- POI特效 市场调研
- Wrote a little webapi knowledge points from 0 to 1
- Matchmaker's words
- [QNX Hypervisor 2.2用户手册]9.8 load
- Same origin strategy and cross domain
- PyTorch的数据输入格式要求及转换
- Which securities firm is the best and safest for beginners to open an account
- Function definition and call
- 1913. 两个数对之间的最大乘积差-无需排序法
- About the foundation of fetch
猜你喜欢
随机推荐
热部署和热加载有什么区别?
Qpprogressbar for QT style (QSS) application
Docker installation redis-5.0.12 (remote access)
XXE&XML-外部实体注入-利用和绕过
E-commerce RPA, a magic weapon to promote easy entry
[Muduo] EventLoop event cycle
numeric学习之iota,accumulate
【代码案例】博客页面设计(附完整源码)
Static agent + dynamic agent
Summary of kotlin common knowledge points
Why are there many snapshot tables in the BI system?
Serialize addition, deletion, modification and query
TS union type
Node Foundation
Serialize operator
Source code of YY music wechat applet imitating Netease cloud music
ES6 syntax (difference between let, const, VaR, deconstruction assignment, arrow function, residual parameters, extension method of array)
【MUDUO】EventLoopThreadPool
This point inside the function / change this point inside the function
Strategy mode_








