<%
Dim myVBArray
MyVBArray=request form (" q ")
% & gt;
Var js='& lt; % %=myVBArray & gt; ';
Var c=,2,5,3,6 [1];
Var d=[3, 6];
Var s=,2,5 [1];
The function the array_diff (a, b) {
For (var I=0; i
If (a==b [j] [I]) {
A.s plice (m, 1);
J=j - 1;
}
}
}
return a;
}
Start. The onclick=function () {
The array_diff (c, js);
Document. The getElementById (" s "). InnerHTML=a;
}
CodePudding user response:
Didn't understand what you meanCodePudding user response:
Is according to the submission form, the different of the same element in an arrayCodePudding user response:
The d s do you use?CodePudding user response:
Such as the form submission is d, minus the same as the d array elements, if s is minus the same as the s array elements,CodePudding user response:
The array_diff (c, window [js]);Document. The getElementById (" s "). InnerHTML=c;