我正在尝试显示英镑符号,但它不起作用。我已经尝试使用 html 代码作为英镑符号仍然没有。
我试过这个
var price = '£' + parseInt($('#pricetag').text(),10) * qty;
jQuery
<script>
$(document).ready(function()
{
$('#selected').hide();
$('#button').click(function()
{
var qty = $('#Qty').val();
var price = '£' + parseInt($('#pricetag').text(),10) * qty;
$('#sprice').text(price);
$('#selected').slideDown();
});
});
</script>