1

jQuery は次のように変換&されて& います。これを停止するにはどうすればよいですか

私のコードはこれです

$("#DeliverNewAddress").click(function(){
        var pageLink =  "{ordering.selectbillinglink}";
        alert(pageLink);
        var href = $('#selectAd').attr('href');
        window.location.href = pageLink; //causes the browser to refresh and load the requested url 
    });

私はこれからURLを取得しています

<a href="{ordering.selectbillinglink}" id="selectAd"  class="selectAd" ></a>

と HTML レンダリングの罰金

/checkout.php?xCmd=s3&xFrom=s2&xType=select&xAid=0&jssCart=057f4450ed29ab674e16d7488e72facd

しかし、私がこれを警告すると、次のようになります

/checkout.php?xCmd=s3&amp;xFrom=s2&amp;xType=select&amp;xAid=0&amp;jssCart=057f4450ed29ab674e16d7488e72facd

そしてチェックアウトを壊します

4

1 に答える 1