1
我主要开发内部网络应用程序,其中IE8仍安装在许多PC上作为主要Web浏览器。我想要包含此HTML5占位符plolyfill,https://github.com/ginader/HTML5-placeholder-polyfill,适用于我所有基于Durandal的视图。什么是实现这一目标的最佳方式?Durandal风格视图应该在哪里包含polyfill?
我主要开发内部网络应用程序,其中IE8仍安装在许多PC上作为主要Web浏览器。我想要包含此HTML5占位符plolyfill,https://github.com/ginader/HTML5-placeholder-polyfill,适用于我所有基于Durandal的视图。什么是实现这一目标的最佳方式?Durandal风格视图应该在哪里包含polyfill?
除了根据说明书将polyfill加载到SPA以外,没有特别的考虑。当然,因为这个polyfill需要jQuery,所以确保jQuery在包含它之前加载。
例如
<head>
....
<link rel="stylesheet" href="placeholder_polyfill.min.css">
...
<script src="placeholder_polyfill.jquery.min.combo.js" charset="utf-8"></script>
...
</head>