Adding new lines to Alert text
I want to crea开发者_开发百科te a simple multiline Alert popup
Alert.show("Blah\\nBlah")
shows Blah\nBlah when what I really want is two lines, one Blah each.
If it is anything like most languages, then you only need to have \n
to get a new line. having \\n
is saying that you actually do want to draw a \
because normally the back slash is used to say you're about to do some thing special.
Try:
Alert.show("Blah\nBlah")
精彩评论