EspañolDeutschFrançaisItalianoPortuguêsРусскийΕλληνικά日本語中文(简体)हिन्दी; हिंदीالعربية
既定の言語として設定します。
PF の質問 - フォーラム

Java スクリプトの設定で現在の年を取得します。

¿Cómo obtengo el año actual en Javascript?

Share on Facebook Tweet about this on Twitter Share on Google+ Pin on Pinterest Share on Reddit Share on VK Share on StumbleUpon Share on Tumblr Share on LinkedIn Email this to someone Print this page
juanma21 聞かれるは 7 年
1 回答

Muy simple. Crea un objeto de tipo あなたを与える() y llama al método getFullYear()

var fecha = new Date();
var anyo = fecha.getFullYear();

//o de forma más simple
var anyo = new Date().getFullYear();

 

Share on Facebook Tweet about this on Twitter Share on Google+ Pin on Pinterest Share on Reddit Share on VK Share on StumbleUpon Share on Tumblr Share on LinkedIn Email this to someone Print this page
ピーター枯 いう 7 年