本篇文章介绍Ajax+Jpgraph实现的动态折线图功能的教程。 1, 代码 fun.js: var i=1;function progress(){ setInterval(beginProgress(), 600);}function beginProgress(){ $(#img).attr(src, img.php?m=+i); i++; if(i=12){ i=1; }} index.php: !DOCTYPE h
本篇文章介绍Ajax+Jpgraph实现的动态折线图功能的教程。 1, 代码 fun.js:
index.php:
img.php:
二 运行结果 ![]() |
2019-06-28
2019-10-03
2019-07-04
2019-06-22
2019-02-12