val, 'and the time is ', selectedTime.getUTCHours(), ':', selectedTime.getUTCMinutes(), 'in UTC');场景2:使用moment.jsvar selected_time = moment(val).format('hh:mm:ss')
我测试了generator-angular并制作了一个测试应用程序,如下所示然后我在文档中读到我可以使用coffeescript而不是js文件,所以我在coffeescript中创建了一个名为user的控制器,如下所示我将app.js文件中的控制器更改为UserCtrl,然后使用以下命令运行它当我检查控制台时the server responded with a status of 4