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.
以下のように、現在の日付をハイチャートのサブタイトルに挿入しようとしています:
subtitle: { text: function() { var d = new Date(); return '<b>' + d + '</b>'; }, },
代わりに、サブタイトルとして印刷された関数を取得しています。何か案は?
d.toDateString(); または d.toLocaleDateString(); または d.toString(); ...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FDate