区块链项目终端代码 基于立即执行函数展示
完成存证确权界面
confirmation.html对应confirmation_index.js
surveillance.html对应surveillance_index.js
sample是没有ajax请求的静态页面
vscode安装open in browser插件 右键->open in default browser 或 command+b 即可打开html
待解决问题:网页自动刷新
思路一:html自动刷新
<html><meta http-equiv="refresh" content="100"> 每隔100s自动刷新</html>
思路二:添加js代码
<script>setTimeout(function () { location.reload() }, 3000);</script>
问题:Echars同时渲染多组数据导致闪烁 感觉是E-charts同时渲染多个图表导致的问题 网上查了一下还没有找到解决办法
思路:不用网页刷新而让数据自动刷新
改动:conformation_index.js
update();
self.setInterval("update()", 1000);
function update(){
//原来的代码
}
分离函数
function draw(num_Month, num_CertificateAmount){}
surveillance加入自动刷新和假数据
改动了css,html文件(没有改动less文件 现在less和css不同步)
修改了一些字体的小细节(legend、xAxis、监测维权右上显示)