如何在网址中存储var x而不是5010979510?
var id = DigitalData[0].Products[0].ProductId
$('.iosSlider').before('<a href="https://instore.prisjakt.nu/cheapest_redirect.php?id=5010979510&f=659" target="_blank"></a>');
答案 0 :(得分:1)
var id = DigitalData[0].Products[0].ProductId
$('.iosSlider').before('<a href="https://instore.prisjakt.nu/cheapest_redirect.php?id=' + id + '&f=659" target="_blank"></a>');