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
The copyright of this article belongs to the author. Please do not reprint it without permission。
Just support it if you like