안녕하세요. Firefox에서 완벽하게 작동하지만 IE 8에서는 작동하지 않으며 오류가 발생하지 않는 코드가 있습니까? "전체 그림"을 얻기 위하여IE에서 Jquery 문제가 발생했습니다.
$(".shp_div").change(function() {
var str = "";
$("select option:selected").each(function() {
var countprod =parseInt($("#countprod").val());
var str2 = $(this).val();
str2_array = str2.split('|');
var cost = parseInt(str2_array[0]);
var cost_extra = parseInt(str2_array[1]);
if ($("#countprod").val()>1) {
str = parseInt(((countprod-1)*cost_extra) + cost);
} else{
str = cost;
}});
$(".csq_item2").text(str);
var total =parseInt($("#subtotal").val());
var shipping=parseInt(str + total);
$(".price_total").text(shipping);
})
.change();
로 이동하십시오 : http://poshsunglasses.net/21-Bottega_Veneta-B.V.88.html 및 장바구니에 자극을 추가 한 다음 없음 카트 페이지에 FF의 배송 국가를 선택하려고 IE에서 계산을합니다.
는
아마 문제와 관련이 없지만 기수를 지정하지 않고'parseInt'를 사용할 때는주의해야합니다. 구문 분석 할 문자열이'0x' 또는'0'으로 시작하면 문자열은 각각 16 진수 또는 8 진수로 구문 분석됩니다. https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/parseInt를 참조하십시오. –