摘要:
利用v-if控制: <router-view v-if="isRouterAlive"></router-view> data() { return { isRouterAlive: true } }, methods:{ reload () { this.isRouterAlive = false 阅读全文
摘要:
layui.use("layer",function(){ var layer=layui.layer; layer.open({ title:" ",//标题 type:1, area:["80%px","80%px"],//探框宽高 content:"",//内容 btn:["确定","取消"] 阅读全文
摘要:
css样式 加上: .layui-form-select dl{ z-index:9999; } .layui-table-cell{ overflow:visible; } .layui-table-box{ overflow:visible; } .layui-table-body{ overf 阅读全文
摘要:
<input type="checkbox" name="switch" id="" lay-skin="switch" lay-filter="sfzs" lay-text="是|否"> 属性:checked ——默认开启 监听: form.on('switch(sfzs)',function(d 阅读全文
摘要:
需先引入: formSelects-v4.css formSelects-v4.js 插件下载地址:https://fly.layui.com/extend/formSelects 使用: <div class="layui-form"> <div class="layui-input-inline 阅读全文
摘要:
URL url = new URL("php接口路径"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setConnectTimeout(10000); conn.setRequestMethod( 阅读全文
摘要:
layui.use('laydate',function(){ var laydayte=layui.laydate; laydate.render({ elem:'#id', range:true, //控件选择完毕后的回调 done:function(value,date,endDate){ / 阅读全文
摘要:
public String daoru(@RequestParam("file") MultipartFile file){ //判断文件不为空 if(file.isEmpty()){ //获取文件名 String fileName=file.getOriginalFilename(); //获取文 阅读全文
摘要:
需要jar包: dom4j-2.1.1jar commons-io-2.6.jar poi-4.0.0.jar poi-ooxml-4.0.0.jar poi-ooxml-schemas-4.0.0.jar poi-scratchpad-3.9.jar xmlbeans-3.0.1.jar Cesh 阅读全文
摘要:
//随机数生成器Math.random()装换为整数parseInt()日期时间函数(需要用变量调用):var b = new Date(); //获取当前时间b.getTime() //获取时间戳b.getFullYear() //获取年份b.getMonth()+1; //获取月份b.getDa 阅读全文