注意:style样式添加方式  $(this).find("a").attr("style", "display:inline-block");  而不是  $(this).find("a").attr("display", "inline-block"); 

$(function () {
            $.each($(".GridViewStyle tr td"), function () {
                //alert($(this).find("a").text());
                if ($(this).find("a").text() == "查看报告") {
               
                    $(this).find("a").attr("style", "display:none");
                }
                if ($(this).text().indexOf("报告已出") > -1) {
                    $(this).find("a").attr("style", "display:inline-block");
                }
            });
        });

相关文章:

  • 2021-12-30
  • 2022-12-23
  • 2021-12-29
  • 2021-11-24
  • 2021-11-30
  • 2022-12-23
  • 2021-07-07
猜你喜欢
  • 2022-01-13
  • 2021-12-19
  • 2021-12-30
  • 2021-12-30
  • 2022-02-05
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案