用javascript可以实现啊。一会儿上代码。
希望我的回答能帮到你哈,有问题可以追问,觉得好就点个赞,有用就采纳!
var time=self.setInterval(function(){$("#today").html(date("Y-m-d H:i:s"));},1000);