当前位置 : 主页 > 网络编程 > JavaScript >

html5计数

来源:互联网 收集:自由互联 发布时间:2021-06-28
js if (localStorage.pagecount) { localStorage.pagecount = Number(localStorage.pagecount) + 1;} else { localStorage.pagecount = 1;}document.write("Visits: " + localStorage.pagecount + " time(s).");
js
if (localStorage.pagecount) {
    localStorage.pagecount = Number(localStorage.pagecount) + 1;
} else {
    localStorage.pagecount = 1;
}
document.write("Visits:  " + localStorage.pagecount + "  time(s).");
上一篇:express 跨域访问
下一篇:银行卡号空格
网友评论