0
我已经成功地在我的所有页面上导入相同的页眉和页脚,我总是使用Chrome浏览器,然后当我试图打开IE浏览器和Firefox的工作时,他们不显示我的页眉和页脚。jquery导入不工作在IE浏览器,火狐浏览器,Safari浏览器
我错过了什么?
火狐显示此消息 click to view image
虽然IE表明无。
这里是我的导入
<link rel="import" id="allheader" href="header.html">
<script>
var getImport = document.querySelector('#allheader');
var getContent = getImport.import.querySelector('#header');
document.body.appendChild(document.importNode(getContent, true));
</script>
我需要做什么码?谢谢
你能找到我上面使用的.import函数的一些文档吗? – GAntoine
@ArcaneCraeda嗨,我编辑我的帖子,这是你需要什么? – sunny
不完全是,我想知道是否有在线文档'getImport.import.querySelector('#header')中使用'import'函数;' – GAntoine