重写浏览标签图标

重写浏览标签图标

        //图片路径
        var faviconAddress = "${request.contextPath}/major/images/yangcai/logo.png"
        var link = document.querySelector("link[rel*='icon']") || document.createElement('link')
        link.type = 'image/x-icon'
        link.rel = 'shortcut icon'
        link.href = faviconAddress
        document.getElementsByTagName('head')[0].appendChild(link)

你可能感兴趣的:(重写浏览标签图标)