0
これらのスクリプトはIEでのみロードします。 IE10以上でthey aren't supportedとIE11で作業しているため、条件付きコメントが機能しません。IEでのスクリプトのロード
¿任意のアイデアですか?
私はanswer of this questionを試しましたが、エラーが発生しています。
Active Server Pages error 'ASP 0138'
Nested Script Block
/solicitudviajes/desplazamientos.asp, line 31
A script block cannot be placed inside another script block.
<script type="text/javascript">
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)){
document.write('<script src="../jquery-ui/jquery-1.10.2.js"><\/script>');
document.write('<script src="../jquery-ui/ui/jquery.ui.core.js"><\/script>');
document.write('<script src="../jquery-ui/ui/jquery.ui.widget.js"><\/script>');
document.write('<script src="../jquery-ui/ui/jquery.ui.dialog.js"><\/script>');
document.write('<script src="../jquery-ui/ui/jquery.ui.button.js"><\/script>');
document.write('<script src="../jquery-ui/ui/jquery.ui.position.js"><\/script>');
document.write('<script src="../jquery-ui/js/jquery-ui-1.10.4.custom.min.js');
}
</script>
:簡単な方法は、このようなものを使用することでしょうか?通常どのブラウザを使用しているかを調べることができます。それ以外の場合は、jsを使用してスクリプトを検出して含めることができます。 – Pete
https://stackoverflow.com/questions/29987969/how-to-load-a-script-only-in-ie私がやった理由です、 –
は私が前に、重複した質問から答えを試みたが、それは私にエラーを与えて再びこの質問アクティブサーバーページエラー「ASP 0138」 ネストされたスクリプトブロック /solicitudviajes/desplazamientos.asp、ライン31 スクリプトブロックは、別のスクリプトブロック内に配置することはできません。 –