摘要:
js端 var 变量=[]; for(var i=1'i<=12;++i){ var s=''; if(i<10){ s=_t.month.tjhz+'0'+i; }esle{ s=_t.month.tjhz+''+i; } a.push(s); } php端 $month=explode(',',
阅读全文
posted @ 2021-01-12 09:32
依崇稀
阅读(83)
推荐(0)
摘要:
//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
阅读全文
posted @ 2020-12-16 09:48
依崇稀
阅读(60)
推荐(0)
摘要:
<script>async function randomDelay(id) { // Delay between 0 and 1000 ms const delay = Math.random() * 1000; return new Promise((resolve) => setTimeout
阅读全文
posted @ 2020-12-16 09:33
依崇稀
阅读(207)
推荐(0)
摘要:
//js部分 其中shijian all chaoshi为表中没有数据,单独添加的,表现样式如下 showTable:function(){ var _t=this; $.post(this.URL+'?showTable',{ act:'showTable',},function(v){ if(v
阅读全文
posted @ 2020-12-10 15:01
依崇稀
阅读(73)
推荐(0)
摘要:
1 js 分两部,一步写方法,一步写配置 showLine:function(){ //折线图配置 var _t=this; //先赋值定义数据 var myChart_line,option_line; var data_time=['2016年','2017年','2018年','2019年',
阅读全文
posted @ 2020-12-09 13:45
依崇稀
阅读(145)
推荐(0)
摘要:
1 配置中的字段如果为isbak bak_num,通过相应组件component,然后写一个判断,其中isbak为false,baknum为true,在组件中的template中.的判断为<span>{{data.isbak==0?'未备案':(data.isbak==1?data.bak_num?
阅读全文
posted @ 2020-12-09 10:39
依崇稀
阅读(106)
推荐(0)
摘要:
关于文档的下载查看以及删除 js部分 <td><span class="cur bucolor" onclick="showDetail(\"+arr2[0]+'\')查看</span>'+(userid="sysmaster'"?" onclick="delDetail('\"+arr2[0]+'
阅读全文
posted @ 2020-07-07 19:00
依崇稀
阅读(109)
推荐(0)
摘要:
1路径的替换以及绝对路径假设一个路径是$path=str_replace($rootPath,'',$_SERVER['DOCUMENT_ROOT]);//绝对路径 如果js的路径是以上写法那么其js中的写法为<?php echo $path;?>/source/js/header.js?versi
阅读全文
posted @ 2020-07-07 18:10
依崇稀
阅读(166)
推荐(0)
摘要:
恢复内容开始 1 展示数据setSlist setSlist(arr) { this.slist = JSON.parse(JSON.stringify(arr)); }然后在html中使用v-for把slist数组渲染出来; <tr v-cloak v-for="(item, index) of
阅读全文
posted @ 2020-05-29 16:01
依崇稀
阅读(164)
推荐(0)
摘要:
注意当中v-model可以实现双向绑定,<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <link href="Content/bootstrap/css/boo
阅读全文
posted @ 2020-05-29 14:47
依崇稀
阅读(231)
推荐(0)