开发者

Size limit of a string passed to function as a parameter

I have a function with one parameter like : function(a){/do something/}

if I pass a string to the fun开发者_C百科ction then is there any size limit of string which I can pass?


It's not defined in the standard ==> implementation dependant.

A cool resource. Cool because Crockford is the first response, and the rest of the discussion quotes other known names in the JS world.

As clarification, the limit is not going to be on the string size you can pass to the function, but just a limit on the string size that the language supports. I.e. if you have no concerns about the size of the string in one place, then passing it is fine.


Passing by reference is always a great strategy. Passing the URI of the data resource (basically the pointer to the head of a list), dividing the data in chunks and retrieving / GET-ing the nodes in a linked list should be a good approach (look at CORS).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜