我有一个看起来像这样的变量:
var simpleText = new Kinetic.Text({
text: 'where text goes',
fontSize: 24
});
如何在文本所在的位置插入换行符。我试过了:
text: 'where text goes \n where text goes',
text: 'where text goes \n\n where text goes',
text: 'where text goes \r\n where text goes',
text: 'where text goes <br /> where text goes',
text: 'where text goes \n' + 'where text goes \n',
text: 'where text goes ' + 'where text goes ',
text: 'where text goes '
+ 'where text goes ',
text: 'where text goes
where text goes',
我的错误。\n 有效