越王够贱

越王够贱 VIP0

45飞吻 2015-8-11 加入 来自泽西城

(这个人懒得留下签名)

越王够贱 最近的提问

越王够贱 最近的回答

  • 2018-2-15 16:9:23调用父页面的方法问题中回答:

    @IT驿站 估计没开放多久
  • 2017-12-31 16:24:39有没有人做过分页,只使用layui的样式中回答:

    <c:set var="total" value="${materials.total}"/>
    <c:set var="curr" value="${materials.curr}"/>
    <c:set var="limit" value="${materials.limit}"/>
    <c:set var="count" value="${materials.count}"/>
    <c:set var="displayStart" value="${materials.displayStart}"/>
    <c:set var="displayEnd" value="${materials.displayEnd}"/>
    <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-10">
    <span class="layui-laypage-count">共${total}条</span>
    <c:if test="${count > 1}">
    <a href="<%=basePath %>sucai/all_0_0_${curr-1}/" class="layui-laypage-prev" >上一页</a>
    </c:if>
    <c:if test="${count <= 1}">
    <a href="javascript;" class="layui-laypage-prev layui-disabled" >上一页</a>
    </c:if>
    <c:if test="${count != 1 and curr != 1}">
    <a href="<%=basePath %>sucai/all_0_0_1/" class="layui-laypage-first" data-page="1" title="首页">1</a>
    </c:if>
    <c:if test="${displayStart != 1}">
    <span class="layui-laypage-spr">…</span>
    </c:if>
    <c:forEach begin="${displayStart}" end="${displayEnd}" var="i">
    <c:if test="${curr != i}">
    <a href="<%=basePath %>sucai/all_0_0_${i}/" >${i}</a>
    </c:if>
    <c:if test="${curr == i}">
    <span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>${i}</em></span>
    </c:if>
    </c:forEach>
    <c:if test="${displayEnd != count and curr!= count }">
    <span class="layui-laypage-spr">…</span>
    <a href="<%=basePath %>sucai/all_0_0_${count}/" class="layui-laypage-last" title="尾页" >${count}</a>
    </c:if>
    <c:if test="${curr != count}">
    <a href="<%=basePath %>sucai/all_0_0_${curr+1}/" class="layui-laypage-next" data-page="7">下一页</a>
    </c:if>
    <c:if test="${curr == count}">
    <a href="javascript:;" class="layui-laypage-next layui-disabled" >下一页</a>
    </c:if>
    <span class="layui-laypage-limits"></span>
    <span class="layui-laypage-skip">跳转到第<input type="text" min="1" value="${curr}" class="layui-input" />页<button type="button" class="layui-laypage-btn">确定</button></span>
    </div>
  • 2017-12-31 16:24:11有没有人做过分页,只使用layui的样式中回答:

    @朱波 解决了
    	    <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-10">
    <span class="layui-laypage-count">共${total}条</span>
    <c:if test="${count > 1}">
    <a href="<%=basePath %>sucai/all_0_0_${curr-1}/" class="layui-laypage-prev" >上一页</a>
    </c:if>
    <c:if test="${count <= 1}">
    <a href="javascript;" class="layui-laypage-prev layui-disabled" >上一页</a>
    </c:if>
    <c:if test="${count != 1 and curr != 1}">
    <a href="<%=basePath %>sucai/all_0_0_1/" class="layui-laypage-first" data-page="1" title="首页">1</a>
    </c:if>
    <c:if test="${displayStart != 1}">
    <span class="layui-laypage-spr">…</span>
    </c:if>
    <c:forEach begin="${displayStart}" end="${displayEnd}" var="i">
    <c:if test="${curr != i}">
    <a href="<%=basePath %>sucai/all_0_0_${i}/" >${i}</a>
    </c:if>
    <c:if test="${curr == i}">
    <span class="layui-laypage-curr"><em class="layui-laypage-em"></em><em>${i}</em></span>
    </c:if>
    </c:forEach>
    <c:if test="${displayEnd != count and curr!= count }">
    <span class="layui-laypage-spr">…</span>
    <a href="<%=basePath %>sucai/all_0_0_${count}/" class="layui-laypage-last" title="尾页" >${count}</a>
    </c:if>
    <c:if test="${curr != count}">
    <a href="<%=basePath %>sucai/all_0_0_${curr+1}/" class="layui-laypage-next" data-page="7">下一页</a>
    </c:if>
    <c:if test="${curr == count}">
    <a href="javascript:;" class="layui-laypage-next layui-disabled" >下一页</a>
    </c:if>
    <span class="layui-laypage-limits"></span>
    <span class="layui-laypage-skip">跳转到第<input type="text" min="1" value="${curr}" class="layui-input" />页<button type="button" class="layui-laypage-btn">确定</button></span>
    </div>
  • 2017-12-31 10:55:53JS代码能加密成这样??怎么弄的?中回答:

    浏览器都能解析了,请问加密有何意义?安全性就是 永远不要相信用户不能破解
  • 2017-12-29 17:17:26laypage只能适用于异步分页么?中回答:

    你这边解决了吗?我也只想用他的分页样式
  • 2017-12-21 9:53:46layui 引用jQuery插件不会用,求指导中回答:

    @indifferent 哥 你就别嘲讽我了,毕竟我这JS差 自己多练习下
  • 2017-12-21 9:47:21layui 引用jQuery插件不会用,求指导中回答:

    @Tenglin 解决了 非常感谢
    <script language="javascript" type="text/javascript">

    layui.extend({
    masonry: 'plug-in/masonry/jquery.masonry.min'
    });


    layui.use(['jquery', 'layer', 'masonry'], function() {
    var $ = layui.jquery,
    layer = layui.layer,
    masonry = layui.masonry;

    $('#element').masonry({
    itemSelector: '.picture-list',
    gutter: 20,
    isAnimated: true
    });
    });



    </script>
  • 2017-12-21 9:26:55layui 引用jQuery插件不会用,求指导中回答:

    @Tenglin 过了十来秒 输出了个
    Layui hint: jqmasonry is not a valid module
  • 2017-12-20 23:56:58jquery的第三方插件 jquery.form.js 扩展中回答:

    @flyljxin 可以发下解决办法吗
  • 2017-11-29 20:57:51大家轮播有没有遇到加载的问题中回答:

    @Pojin 但是我这图片已经加载过一次了,是在缓存里面 有200多KB 而且 服务器速度也不慢 10M的至今在测试,客户端宽带为300M的
  • 2017-11-29 15:40:22form表单提交多次中回答:

    前台看着没问题啊!是不是后台接口的问题
  • 2017-11-28 9:22:25layedit上传图片问题中回答:

    @Eleven 嗯,据说在2.3的版本会重写。期待这个重写
  • 2017-11-27 23:14:33layedit上传图片问题中回答:

    @Eleven 但是我想在上传后, 记录保存,上传方法没有回调 这个问题就得不到解决
  • 2017-11-27 23:13:57layedit上传图片问题中回答:

    @Eleven
      form.on('submit(templet_submit)', function(data){

    data.field.content=layedit.getContent(editIndex);
    //data.field.content="一个测试";
    var templet_url="";
    $.ajax(templet_url,{
    data:data.field,
  • 2017-11-27 23:1:28layedit中回答:

    @苏赤竹 layedit多久再上架,确实有些小BUG 对于你们来说改下也许就好啦啊!这东西有需求的量也比较多的