小编use*_*046的帖子

使用微调器加载iframe

此代码正确加载微调器,但如何在加载完成后隐藏它?

iframe {
    background-image: url("http://jimpunk.net/Loading/wp-content/uploads/loading2.gif");   
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
Run Code Online (Sandbox Code Playgroud)

javascript iframe jquery

7
推荐指数
2
解决办法
1万
查看次数

在JavaScript函数中引用表中的左侧单元格

我有一个js函数需要根据第5个中的值格式化表中的第6列.我使用了以下但它不起作用:

$('tr td:nth-child(6)').each(
    function() {
      var vGood = 0.2
          good = -0.5,
          avg = 0,
          poor = 0.5,
          vPoor = -0.2
      score= $('tr td:nth-child(5)').text(); 
      if (score >= vGood) {
          $(this).addClass('fa fa-thumbs-up fa-lg text-danger latest-icon');          
      }
})
Run Code Online (Sandbox Code Playgroud)

javascript jquery

1
推荐指数
1
解决办法
44
查看次数

标签 统计

javascript ×2

jquery ×2

iframe ×1