1、
VAR myVarに=のsetInterval(関数(){myTimer()}、1000)。 関数myTimer(){ VARのD =新しいDate(); VaRのT = d.toLocaleTimeString()。 document.getElementById( "デモ")innerHTMLの=トン。 } 関数myStopFunction(){ てclearInterval(myVarに)。 }
1、
VAR myVarに=のsetInterval(関数(){myTimer()}、1000)。 関数myTimer(){ VARのD =新しいDate(); VaRのT = d.toLocaleTimeString()。 document.getElementById( "デモ")innerHTMLの=トン。 } 関数myStopFunction(){ てclearInterval(myVarに)。 }