0
この行はIE8でWindows 7でエラーが発生しています.BrowserStackのすべてのテストでエラーを投げる唯一のブラウザです。 「クラス:」IE8でエラーを発生させない別の方法がありますか?
jQuery('.quoter_steps .loading_rates').prepend(jQuery('<p>', { class: 'error_message' }).append(vals));
エラー開始時刻:と言う"Expected identifier, string or number"
ここ
はこれが問題を引き起こしている1つのラインである
jQuery('.quoter_steps .loading_rates').slideDown('fast', function() {
jQuery('.quoter_steps .loading_rates').prepend(jQuery('<p>', { class: 'error_message' }).append(vals));
jQuery(".error_message").css("display", "block");
jQuery("p.error_message").css("display", "block");
jQuery(".quoter_contain").removeClass("step_two--on");
jQuery(".quoter_contain").addClass("step_three--on");
});
...コードのブロック全体であります
この行には他のブラウザエラーはありません。古くなったブラウザですが、私たちのビジネスでは、このブラウザからのトラフィックはまだ表示されません。エラーが発生しました。どんな助けもありがとう! .loading_ratesクラスは仕様の最初の、おそらく唯一の要素withing .quoter_steps
リファレンスthis品であると仮定すると
var el = document.getElementsByClassName('quoter_steps');
el[0].insertBefore(elChild, el.firstChild);
:おかげで、あなたの場合は
お試しください{{"class": 'error_message'} ' – Tom