摘要: 利用v-if控制: <router-view v-if="isRouterAlive"></router-view> data() { return { isRouterAlive: true } }, methods:{ reload () { this.isRouterAlive = false 阅读全文
posted @ 2022-01-04 22:22 fdbnf 阅读(333) 评论(0) 推荐(0) 编辑
摘要: layui.use("layer",function(){ var layer=layui.layer; layer.open({ title:" ",//标题 type:1, area:["80%px","80%px"],//探框宽高 content:"",//内容 btn:["确定","取消"] 阅读全文
posted @ 2019-09-02 15:31 fdbnf 阅读(135) 评论(0) 推荐(0) 编辑
摘要: css样式 加上: .layui-form-select dl{ z-index:9999; } .layui-table-cell{ overflow:visible; } .layui-table-box{ overflow:visible; } .layui-table-body{ overf 阅读全文
posted @ 2019-08-07 14:26 fdbnf 阅读(6369) 评论(1) 推荐(0) 编辑
摘要: <input type="checkbox" name="switch" id="" lay-skin="switch" lay-filter="sfzs" lay-text="是|否"> 属性:checked ——默认开启 监听: form.on('switch(sfzs)',function(d 阅读全文
posted @ 2019-08-07 14:20 fdbnf 阅读(10515) 评论(0) 推荐(0) 编辑
摘要: 需先引入: formSelects-v4.css formSelects-v4.js 插件下载地址:https://fly.layui.com/extend/formSelects 使用: <div class="layui-form"> <div class="layui-input-inline 阅读全文
posted @ 2019-08-04 23:26 fdbnf 阅读(2896) 评论(0) 推荐(0) 编辑
摘要: URL url = new URL("php接口路径"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setConnectTimeout(10000); conn.setRequestMethod( 阅读全文
posted @ 2019-07-08 17:29 fdbnf 阅读(2998) 评论(0) 推荐(0) 编辑
摘要: layui.use('laydate',function(){ var laydayte=layui.laydate; laydate.render({ elem:'#id', range:true, //控件选择完毕后的回调 done:function(value,date,endDate){ / 阅读全文
posted @ 2019-07-08 16:23 fdbnf 阅读(2997) 评论(0) 推荐(0) 编辑
摘要: public String daoru(@RequestParam("file") MultipartFile file){ //判断文件不为空 if(file.isEmpty()){ //获取文件名 String fileName=file.getOriginalFilename(); //获取文 阅读全文
posted @ 2019-07-02 11:35 fdbnf 阅读(949) 评论(0) 推荐(0) 编辑
摘要: 需要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 阅读全文
posted @ 2019-06-27 21:25 fdbnf 阅读(446) 评论(0) 推荐(0) 编辑
摘要: //随机数生成器Math.random()装换为整数parseInt()日期时间函数(需要用变量调用):var b = new Date(); //获取当前时间b.getTime() //获取时间戳b.getFullYear() //获取年份b.getMonth()+1; //获取月份b.getDa 阅读全文
posted @ 2019-06-20 23:08 fdbnf 阅读(226) 评论(0) 推荐(0) 编辑