JS pass array parameters to the background controller method

Transfer parameters pass strings, so convert arrays to strings,

  VAR Arr = [1, 23, 34, 5 ]; var str = arr.tostring ();  
STR is passed to the background, str.split (“,”); split the string to the element .

VAR Arr = [1, 23, 34, 5]; var str = arr.tostring (); Document.write (STR); var Getarr = Str.Split (“,”); for (var i = 0; i

The method of JS transmission array parameter to the background controller is Xiaobian sharing to everyone. All of the content, I hope to give you a reference, I also hope that everyone will support Tumi Cloud.
© Copyright Notice
Just support it if you like
comment Grab the couch

Please log in to comment