1 var test = {}; 2 test.contentText = function() { 3 var C = new Date(); 4 var contentHour = C.getHours(); 5 console.log(contentHour); 6 }; 7 test.contentText();
1 var test = {}; 2 test.contentText = function() { 3 var C = new Date(); 4 var contentHour = C.getHours(); 5 console.log(contentHour); 6 }; 7 test.contentText();