正如標題所述,我的Imports(<link rel="import" href="/path/to/external/file.html">
)在safari或firefox中不起作用。 我已經在導入上面導入了webcomponents.min.js,但仍然無效。帶有webcomponentsjs的HTML導入在非鉻瀏覽器中不起作用
這裏是我的代碼如下所示:
<html> <head> <!--TITLE, VIEWPORT, ETC--> <script src="/assets/app-components/webcomponentsjs/webcomponents-lite.min.js"></script> <link rel="import" href="/assets/app-components/adrydapp-init/adrydapp-init.html"> </head> <body> <!--PAGE CONTENT--> </body> </html>
它完美罰款Chrome,但不能在Firefox或Safari
任何想法
我使用的聚合物1.5.0和WebcomponentsJS 0.7.22
緩存文件可能是第一次使用Firefox或Safari瀏覽器而不是修改後的文件。 – Supersharp