问题
As emmet use dollar sign ($) for numbering like:
p#p${$}*3 //outputs <p id="p1">1</p><p id="p2">2</p><p id="p3">3</p>
it has its significant usefulness.
But, in case of currency, I am having strange problem with it.
p{$10} //outputs <p>${14}</p> expected <p>$10</p>
What can I do for this type of scenario?
Note: To be precise, I am using https://github.com/Krizz/jquery.emmet as jquery emmet plugin.
回答1:
Could you try and use $
? This should escape it properly.
Source: http://www.fileformat.info/info/unicode/char/0024/index.htm
回答2:
You can use \
to escape $
symbol:
p#p${\$}*3
来源:https://stackoverflow.com/questions/39973270/how-to-escape-dollar-sign-in-emmet