开发者

Avoiding escape sequence processing in ActionScript?

I need to mimic C# functionality of the @ symbol when it precedes a string.

@"C:\A\File\Path"开发者_开发问答 for example

What is the best way to do this? Also there are some sites that will escape larger strings for you so that they survive the processing but I could not find one for Actionscript.

Help?


No, unfortunately there is no support for verbatim string literals in actionscript. You are going to have to escape them manually. Even calling string.replace("\", "\\") doesn't work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜