zoukankan      html  css  js  c++  java
  • 用jquery获取tbody下的第一个tr的最后一个td里面的值

    用jquery获取tbody下的第一个tr的最后一个td里面的值:re_process_old = $(".re_process_list tr:first td:last").text();
    function(index, layero){
                    var re_content = layero.find("#re_content").val();
                    var re_process = layero.find("#re_process").val();
    
                    //re_process_old = layero.find("#re_process").val();
                    re_process_old = $(".re_process_list tr:first td:last").text();
    
                    if(re_process){
                        if(re_process<re_process_old){
                            $.modal.alertWarning('整改进展不能小于当前值 !');
                        }
                        if(re_process==null){
                            $.modal.alertWarning('整改进展不能为空 !');
                        }
                    }
                    if (re_content) {
                        if(re_content.length > 300){
                            $.modal.alertWarning('进展内容不能超过300字!');
                            return;
                        }
                        var url = ctx + "base/sup/ques/re_process/add";
                        $.post(url, {reContent: re_content, reProgress: re_process,
                                     supFeedbackQuesId: [[${baseSupFeedbackQues.supFeedbackQuesId}]]},
                            function (result) {
                                if (result.code === web_status.SUCCESS) {
                                    get_re_process();
                                    layer.close(index);
                                } else {
                                    $.modal.alertError(result.msg);
                                }
                            }
                        );
                    } else {
                        $.modal.alertWarning('进展内容不能为空!');
                    }
                }
            });
  • 相关阅读:
    js兼容性——获取当前浏览器窗口的宽高
    pip 换源
    5 二分查找 算法
    顺序查找 冒泡 快排 等
    4 顺序表和链表
    python垃圾回收机制
    3 栈 队列 双头队列
    2 数据结构的性能分析 timeit
    1 时间复杂度
    线程池 爬取一本小说
  • 原文地址:https://www.cnblogs.com/liqinzhen/p/13607976.html
Copyright © 2011-2022 走看看