2012-04-03 45 views

回答

5

您可以使用两个ampersat符号进行转义:@@

var a = "this is a test text with @@ symbol"; 

顺便说一句,虽然我最近才知道,并认为这些过这个问题,未来还可能会发现它有用:

@*this would comment out some code, or just allow for comments in general*@ 
4

@@应该工作以逃避字符

+0

THX jrummell,我会尝试使用代码语法nex时间! – 2012-04-03 14:57:55

2
var a = "this is a test text with "+<text>@</text>+" symbol"; 
2
:你可以用ampersat标志和星号的组合做评论

为了逃避一个@符号,你需要像这样翻倍:

@@