Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您能否帮助我使用 Google 可视化 API 的 dateFormat 说明符,以便我可以显示毫秒。
提前致谢!
要在 javascript 中设置 Date 实例的毫秒数,请使用 setMilliseconds() 方法:
x = new Date(2009, 7, 6, 20, 10, 10); x.setMilliseconds(10);
不过,我怀疑 Google Annotated Timeline 会以毫秒为单位显示值。