当前位置:网站首页>[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);
边栏推荐
- Implementation of mesh parameterized least squares conformal maps (3D mesh mapping to 2D plane)
- [Database Foundation] summary of MySQL Foundation
- [QNX hypervisor 2.2 user manual]9.8 load
- Source code of YY music wechat applet imitating Netease cloud music
- Qpprogressbar for QT style (QSS) application
- 762. Prime number calculation setting in binary representation
- TS class
- 反射之类加载过程
- E-commerce RPA, a magic weapon to promote easy entry
- Grain Academy p98 trample pit e.globalexceptionhandler: null
猜你喜欢

意向不到的Dubug妙招

WebMvcConfigurationSupport

Docker 安装 Redis-5.0.12(远程访问)

npm+模块加载机制

S4/HANA MM & SD EDI基于NAST的集成配置(ORDERS, ORDRSP, DESADV, INVOIC)

utility实用组件学习之swap,move,forward,exchange

Node Foundation

Source code of wechat applet for discerning flowers and plants / source code of wechat applet for discerning plants

E-commerce RPA, a magic weapon to promote easy entry

ABAP 代码中读取会计科目的字段状态(隐藏、可选、必输)
随机推荐
LeetCode 0919. 完全二叉树插入器:完全二叉树的数组表示
Anti shake and throttling
Docker 安装 Redis-5.0.12(远程访问)
MVVM model
LeetCode 0136. 只出现一次的数字:异或
ABAP 代码中读取会计科目的字段状态(隐藏、可选、必输)
Three board axe! Help you become an excellent software engineer
POI special effects Market Research
Learning exploration - waves
Recursion of function (use recursion to find the factorial of 1-N) (use recursion to find Fibonacci sequence) (use recursion to traverse data)
How does Navicat modify the language (Chinese or English)?
【MUDUO】Thread封装
Docker installation redis-5.0.12 (remote access)
策略模式_
Implementation of mesh parameterized least squares conformal maps (3D mesh mapping to 2D plane)
Grain Academy p98 trample pit e.globalexceptionhandler: null
Overview of MES system equipment management (Part 2)
[Muduo] thread package
Function definition and call
[QNX Hypervisor 2.2用户手册]9.8 load