How to print a pound “£” in html file?

前端 未结 7 1151
再見小時候
再見小時候 2021-01-21 06:43

i am trying to display a pound sign in my html page.i want to display it through a variable because i am getting the values of sign from an xml file.

Here is Code:

相关标签:
7条回答
  • 2021-01-21 07:25

    Use £

    $(this).text('£');
    
    • If you try this and it does not work, just change the jQuery methods,

      $(this).html('£');

    This always work in all contexts...

    0 讨论(0)
提交回复
热议问题