FullCalendar substring日期返回未接收的TypeError:info.event.end.substring不是功能
我有一个完整的calendar,其中我正在使用jQuery timepicker。 在事件点击时,我需要采取起点属性(例如:“星期三5月4日2022 11:30:00格林尼治标准时间+0200(Ora Legale dell'europa Centrale)”),但使用子弦仅具有HH:mm:mm。 我尝试做:“ var x = info.event.end.substring(16,21);”但是,当我单击事件时,此错误发生了:“ usfure type.event.end.end.substring不是函数” 我该如何解决?
I have a fullcalendar in which i'm using a jquery timepicker.
On event click i need to take the start properties (example: "Wed May 04 2022 11:30:00 GMT+0200 (Ora legale dell’Europa centrale)") but using the substring to only have HH:MM.
I tried doing: "var x= info.event.end.substring(16, 21);" but when i click an event this error occure: "Uncaught TypeError: info.event.end.substring is not a function"
How can i fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
end
是date
对象,substring
仅在String
对象上工作。添加.toString()
,您将能够进步。end
is aDate
object, andsubstring
only works onString
objects. Add.toString()
and you'll be able to progress.