//页面定时刷新.2017.09.27
$(document).ready(function () {
self.setInterval(function () {
var d = new Date();
var t = d.toLocaleTimeString();
document.getElementById("bname").value = t;
}, 1000);
})
2:
//页面定时刷新.2017.09.27
$(document).ready(function () {
self.setInterval("startclock", 1000);
})
function startclock() {
var d = new Date();
var t = d.toLocaleTimeString();
document.getElementById("bname").value = t;
}