开发者

What is the maximum number of lines a TextArea control can hold?

I have an app that has text appended to a TextArea (TA). It automatically scrolls to keep the recent line added in view. Over time, this could be a lot. Do I have to wo开发者_开发问答rry about this? Is there an upper limit? And, if so, how can I prune the oldest lines of text?


There's nothing in the documentation, but if it gets too big you could run into memory issues. But we're talking collosal here.

It's easy enough to remove oldest lines using the slice() method

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜