原来使用这段代码没有任何问题,现在突然不行了,请高手指点一下,谢谢
Model.prototype.getDateTime = function(){
var date = new Date();
var sMonth = date.getMonth() + 1;
var strDate = date.getDate();
var sHours = date.getHours();
var sMinutes = date.getMinutes();
var sSeconds = date.getSeconds();