隐藏和更改功能无法进行探索

时间:2019-03-25 16:31:09

标签: javascript jquery html

我写了一些代码。该代码适用于chrome,safari和mozilla,但不适用于资源管理器。

Error: Server Error

我想在资源管理器中隐藏和更改。

2 个答案:

答案 0 :(得分:0)

Template literals在任何版本的IE中都完全不受支持。同样,let关键字仅在IE11中有效。您需要使用SELECT tbl1.Order_Id ,tbl1.Sub_Id ,tbl1.Product_Id ,tbl1.Product_Value ,tbl2.Product_Owner ,tbl2.Owner_Id FROM tbl1 AS tbl1 LEFT OUTER JOIN tbl2 AS tbl2 ON tbl1.Order_Id=tbl2.Order_Id AND tbl1.Sub_Id=tbl2.Sub_Id 和字符串串联。

还要注意,您应该在逻辑中缓存重复的选择器以提高性能。试试这个:

var

答案 1 :(得分:0)

我无法修复此部分。对于android浏览器,即10 <

$('#vizeislemler').on('change', function(e) {
    let $self = $(e.target);$self.next('a').attr('href', $self.find(':selected').data('url')).html('<i class="fas fa-external-link-alt"></i>' + $self.find(':selected').text());
    window.location = selected.data('url');
  });

  $('a[href*="#"]')
    // Remove links that don't actually link to anything
    .not('[href="#"]')
    .not('[href="#0"]')
    .click(function(event) {
        // On-page links
        if (
            location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 
            && 
            location.hostname == this.hostname
        ) {
        // Figure out element to scroll to
        var target = $(this.hash);
        target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
        // Does a scroll target exist?
        if (target.length) {
          // Only prevent default if animation is actually gonna happen
          event.preventDefault();
          $('html, body').animate({
            scrollTop: target.offset().top
          }, 1000, function() {
            // Callback after animation
            // Must change focus!
            var $target = $(target);
            //$target.focus();
            if ($target.is(":focus")) { // Checking if the target was focused
              return false;
            } else {
              $target.attr('tabindex','-1'); // Adding tabindex for elements not focusable
              //$target.focus(); // Set focus again
            };
          });
        }
        }
      });
});