Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はrequire.jsが初めてです。IE でのみ実行される IE ポリフィルに html5shiv を使用しています。
では、require.config で IE 固有の条件を定義する方法は?
require.config({ paths: { jquery: 'libs/jquery', html5shiv : 'libs/html5shiv' } });
html5shiv は IE でのみロードする必要があります
HTML5shiv コードは で発生する必要が<head>あり、他の手段を使用html5shiv.jsして組み込みの shim コードをロードすると、時間内に呼び出されません。
<head>
html5shiv.js