0

When i use the javascript code ( http://jsfiddle.net/TRyhK/ ) :

var test = "@[]
@[]";

I reiceive a strange error: SyntaxError: Unexpected token ILLEGAL. Does anyone know how to fix it? Thanks

4

1 回答 1

3

字符串文字中的换行符可以表示为\n

var test = "@[]\n@[]";
于 2013-02-17T07:11:50.580 回答