zoukankan      html  css  js  c++  java
  • 非空与 jquery.each

    return ;只能跳出each方法 ,无法跳出aaa()

    function aaa{

      var result = false;
                //非空
                $("input[type='text']").each(
                         function () {
                             if ($(this).val().length <= 0) {
                                 parent.layer.msg('当前选项不能为空!', { icon: 5 });
                                 $(this).focus();
                                 result = true;
                            
                             }
             
                         });
    }

  • 相关阅读:
    Bellman-Ford算法
    POJ 1990 MooFest
    POJ3067:Japan(树状数组求逆序对)
    树状数组求逆序对
    树状数组
    Is It A Tree?(hdu1325)
    强连通图 Tarjan算法
    UVALive
    UVALive
    Problem Statement
  • 原文地址:https://www.cnblogs.com/j2ee-web-01/p/7219246.html
Copyright © 2011-2022 走看看