关于const let的使用
摘要://const函数 const b=100; //数组 const list=[]; list[0]=10; list[1]=100; list[2]=1000; console.log(list)//对象 const obj={a:100}; obj.name='xiaowang'; obj.ti
阅读全文
关于promise,const函数的使用
摘要:<script>async function randomDelay(id) { // Delay between 0 and 1000 ms const delay = Math.random() * 1000; return new Promise((resolve) => setTimeout
阅读全文
表格数据绑定市显示
摘要://js部分 其中shijian all chaoshi为表中没有数据,单独添加的,表现样式如下 showTable:function(){ var _t=this; $.post(this.URL+'?showTable',{ act:'showTable',},function(v){ if(v
阅读全文
关于折线图的使用
摘要:1 js 分两部,一步写方法,一步写配置 showLine:function(){ //折线图配置 var _t=this; //先赋值定义数据 var myChart_line,option_line; var data_time=['2016年','2017年','2018年','2019年',
阅读全文
关于备案编号跟备案状态的合并以及js取月份进行下载
摘要:1 配置中的字段如果为isbak bak_num,通过相应组件component,然后写一个判断,其中isbak为false,baknum为true,在组件中的template中.的判断为<span>{{data.isbak==0?'未备案':(data.isbak==1?data.bak_num?
阅读全文