踏雪无痕470

踏雪无痕470

695飞吻 2018-3-21 加入 来自北京

(敢问路在何方,路在脚下。)

踏雪无痕470 最近的提问

踏雪无痕470 最近的回答

  • 2018-4-24 17:51:24layui.table 接收的数据,如果服务器返回的层级大于两层怎么办中回答:

    @代码合成体 你没明白我意思。我的意思是说:你先通过js获取要展示的数据,再用table.render显示出来。
  • 2018-4-24 17:42:30layui.table 接收的数据,如果服务器返回的层级大于两层怎么办中回答:

    那就采用方法渲染。自己控制。
  • 2018-4-24 17:16:6LayUI 选项卡怎么在JS里获取到当前选项卡的id?中回答:

    监听选项卡切换
    Tab选项卡点击切换时触发,回调函数返回一个object参数,携带两个成员:

    codelayui.code
    element.on('tab(filter)', function(data){
    console.log(this); //当前Tab标题所在的原始DOM元素
    console.log(data.index); //得到当前Tab的所在下标
    console.log(data.elem); //得到当前的Tab大容器
    });
  • 2018-4-24 16:8:58最近社区好冷清,感觉要有大版本的更新啊中回答:

    顶。。。。
  • 2018-4-23 17:16:37layui的使用中回答:

    如果不影响使用,应该是IDE问题,不用在意,如果看的别扭,需要调整IDE的相关设置。比如JS校验等等。。
  • 2018-4-23 10:31:1layui表格重载查不到数据中回答:

    @马克思
    <button class="layui-btn" data-type="reload">搜索</button>
    这个改为
    <button class="layui-btn" type="button" data-type="reload">搜索</button>
  • 2018-4-23 10:28:53在使用选择月份时能否启用上月26到本月25的周期?中回答:

    你这应该属于业务范畴了,建议不要修改控件,自己通过日期控件获取数据后,再通过逻辑判断。
  • 2018-4-23 10:23:48layui表格重载查不到数据中回答:

    @马克思
    tableIns.reload({
    where:{
    id:$("#demoReload").val(),
    }
    改为:
    table.reload('testReload',{
    where:{
    id:$("#demoReload").val(),
    }
  • 2018-4-19 11:43:53图片可以一次上传多张吗?中回答:

    [微笑] 打成压缩包
  • 2018-4-13 17:28:59点击搜索报错中回答:

    table 如果没有render过,好像不能直接reload吧。可能就是这个原因了。你可以直接用table.render()
  • 2018-4-13 17:18:13表单提交,return false ,表单没有提交成功!中回答:

    这个需要去掉return false呀
  • 2018-4-13 16:30:7分页容器不能弄到class上吗?yy中回答:

    @淡忘流年 那试试下面的方法
      
    //自定义排版
    laypage.render({
    elem: 'demo8'
    ,count: 1000
    ,layout: ['limit', 'prev', 'page', 'next']
    });

    $('#demo9').html($('#demo8').html());
  • 2018-4-13 15:15:28关于密码不一致禁用input提交按钮问题中回答:

    两个方法吧。一个是用form.verify校验第二个密码是否和第一个一致,不一致,就不会提交了。另一个方法。把校验逻辑放到提交的函数中去,校验不通过,就return
  • 2018-4-13 15:10:9分页容器不能弄到class上吗?yy中回答:

    @淡忘流年 单独定义两个容器,用来显示分页。
  • 2018-4-13 14:51:44layui 分页角标没有正常显示中回答:

    page:true下面是什么,都贴出来把
  • 2018-4-13 14:46:9layui有没有自带清空搜索条件的功能中回答:

    <button type="reset" id="btnRetSet" type="button" class="layui-btn layui-btn-primary">重置</button>
    把这句话加到搜索条件的表单中
  • 2018-4-13 14:8:39表单提交时明明都已经填写完成了,还是提示必选项不能为空的提示中回答:

    @小李杜 你标注的只是一个class,我说的是form标签。
  • 2018-4-13 13:54:0表单提交时明明都已经填写完成了,还是提示必选项不能为空的提示中回答:

    @小李杜 个人认证、企业认证,这两个显示的表单元素,你都放到一个form里面了,所以会有问题。
  • 2018-4-13 13:24:56表单提交时明明都已经填写完成了,还是提示必选项不能为空的提示中回答:

    你还是贴代码吧。
  • 2018-4-12 17:42:17layui-table如何实现动态编辑中回答:

    @波意奥 我不用表头的这个edit属性,我换了一个思路,如果允许修改单元格,就会弹出一个对话框,然用户输入修改内容,关闭对话框,修改内容会写到单元格中去。这个做法,官网有例子
  • 2018-4-12 15:1:48layui mvc .net中回答:

    应该是返回的json格式不对。
  • 2018-4-12 14:44:38layui的checkbox监听事件中回答:

    html代码贴出来看看
  • 2018-4-12 11:22:24做按条件查询的时候为什么提示我 ‘返回的数据状态异常’中回答:

    @带风i 你返回的json格式不对把。
    {"code":0,"msg":"","count":1000,"data":[{"id":10000,"username":"user-0","sex":"女","city":"城市-0","sign":"签名-0","experience":255,"logins":24,"wealth":82830700,"classify":"作家","score":57},{"id":10001,"username":"user-1","sex":"男","city":"城市-1","sign":"签名-1","experience":884,"logins":58,"wealth":64928690,"classify":"词人","score":27},{"id":10002,"username":"user-2","sex":"女","city":"城市-2","sign":"签名-2","experience":650,"logins":77,"wealth":6298078,"classify":"酱油","score":31},{"id":10003,"username":"user-3","sex":"女","city":"城市-3","sign":"签名-3","experience":362,"logins":157,"wealth":37117017,"classify":"诗人","score":68},{"id":10004,"username":"user-4","sex":"男","city":"城市-4","sign":"签名-4","experience":807,"logins":51,"wealth":76263262,"classify":"作家","score":6},{"id":10005,"username":"user-5","sex":"女","city":"城市-5","sign":"签名-5","experience":173,"logins":68,"wealth":60344147,"classify":"作家","score":87},{"id":10006,"username":"user-6","sex":"女","city":"城市-6","sign":"签名-6","experience":982,"logins":37,"wealth":57768166,"classify":"作家","score":34},{"id":10007,"username":"user-7","sex":"男","city":"城市-7","sign":"签名-7","experience":727,"logins":150,"wealth":82030578,"classify":"作家","score":28},{"id":10008,"username":"user-8","sex":"男","city":"城市-8","sign":"签名-8","experience":951,"logins":133,"wealth":16503371,"classify":"词人","score":14},{"id":10009,"username":"user-9","sex":"女","city":"城市-9","sign":"签名-9","experience":484,"logins":25,"wealth":86801934,"classify":"词人","score":75},{"id":10010,"username":"user-10","sex":"女","city":"城市-10","sign":"签名-10","experience":1016,"logins":182,"wealth":71294671,"classify":"诗人","score":34},{"id":10011,"username":"user-11","sex":"女","city":"城市-11","sign":"签名-11","experience":492,"logins":107,"wealth":8062783,"classify":"诗人","score":6},{"id":10012,"username":"user-12","sex":"女","city":"城市-12","sign":"签名-12","experience":106,"logins":176,"wealth":42622704,"classify":"词人","score":54},{"id":10013,"username":"user-13","sex":"男","city":"城市-13","sign":"签名-13","experience":1047,"logins":94,"wealth":59508583,"classify":"诗人","score":63},{"id":10014,"username":"user-14","sex":"男","city":"城市-14","sign":"签名-14","experience":873,"logins":116,"wealth":72549912,"classify":"词人","score":8},{"id":10015,"username":"user-15","sex":"女","city":"城市-15","sign":"签名-15","experience":1068,"logins":27,"wealth":52737025,"classify":"作家","score":28},{"id":10016,"username":"user-16","sex":"女","city":"城市-16","sign":"签名-16","experience":862,"logins":168,"wealth":37069775,"classify":"酱油","score":86},{"id":10017,"username":"user-17","sex":"女","city":"城市-17","sign":"签名-17","experience":1060,"logins":187,"wealth":66099525,"classify":"作家","score":69},{"id":10018,"username":"user-18","sex":"女","city":"城市-18","sign":"签名-18","experience":866,"logins":88,"wealth":81722326,"classify":"词人","score":74},{"id":10019,"username":"user-19","sex":"女","city":"城市-19","sign":"签名-19","experience":682,"logins":106,"wealth":68647362,"classify":"词人","score":51},{"id":10020,"username":"user-20","sex":"男","city":"城市-20","sign":"签名-20","experience":770,"logins":24,"wealth":92420248,"classify":"诗人","score":87},{"id":10021,"username":"user-21","sex":"男","city":"城市-21","sign":"签名-21","experience":184,"logins":131,"wealth":71566045,"classify":"词人","score":99},{"id":10022,"username":"user-22","sex":"男","city":"城市-22","sign":"签名-22","experience":739,"logins":152,"wealth":60907929,"classify":"作家","score":18},{"id":10023,"username":"user-23","sex":"女","city":"城市-23","sign":"签名-23","experience":127,"logins":82,"wealth":14765943,"classify":"作家","score":30},{"id":10024,"username":"user-24","sex":"女","city":"城市-24","sign":"签名-24","experience":212,"logins":133,"wealth":59011052,"classify":"词人","score":76},{"id":10025,"username":"user-25","sex":"女","city":"城市-25","sign":"签名-25","experience":938,"logins":182,"wealth":91183097,"classify":"作家","score":69},{"id":10026,"username":"user-26","sex":"男","city":"城市-26","sign":"签名-26","experience":978,"logins":7,"wealth":48008413,"classify":"作家","score":65},{"id":10027,"username":"user-27","sex":"女","city":"城市-27","sign":"签名-27","experience":371,"logins":44,"wealth":64419691,"classify":"诗人","score":60},{"id":10028,"username":"user-28","sex":"女","city":"城市-28","sign":"签名-28","experience":977,"logins":21,"wealth":75935022,"classify":"作家","score":37},{"id":10029,"username":"user-29","sex":"男","city":"城市-29","sign":"签名-29","experience":647,"logins":107,"wealth":97450636,"classify":"酱油","score":27}]}
  • 2018-4-12 11:0:23做按条件查询的时候为什么提示我 ‘返回的数据状态异常’中回答:

    {
    code: 0,
    msg: "",
    count: 1000,
    data: []
    }
    这是默认接收的数据格式,你具体怎么弄的。
  • 2018-4-12 10:34:48数据表格中checkbox样式问题中回答:

    把你的代码贴出来看看
  • 2018-4-12 10:29:34请教一下Layer的问题中回答:

    layer.open({
    content: '测试回调',
    success: function(layero, index){
    console.log(layero, index);
    }
    });
    把你的ajax还有弹出层关闭代码放到success中去。
  • 2018-4-12 10:14:24关于单元格编辑的疑问?中回答:

    <table class="layui-hide" id="test"></table>这个改成
    <table class="layui-hide" id="test" lay-filter='test3'></table>
  • 2018-4-12 9:57:8各位大佬,流加载怎样重新加载中回答:

    贴代码看看,不知道你想做什么需求
  • 2018-4-12 9:35:49谈一谈所谓的 「粉转黑」中回答:

    支持贤心。不是每个人都有勇气、有能力走创业之路,要尊重每个人的劳动成果、知识产权。
  • 2018-4-11 16:30:15layui.use定义的局部变量如何在全局使用中回答:

    贴代码看看