Alerting Special Characters using jQuery/JavaScript

后端 未结 3 901
陌清茗
陌清茗 2021-02-08 03:08

How do i display a string with Special Characters like € in a Javascript/jQuery alert?

eg: I want to display a message box with \"The Price is €10\"

But whe

3条回答
  •  我在风中等你
    2021-02-08 04:04

    Check :

    alert("The Price is \u20AC 10");
    

    http://jsfiddle.net/Nseum/

    Unicode Character 'EURO SIGN' (U+20AC)

提交回复
热议问题