CodePudding user response:
<meta charset="utf-8"/& gt;
<meta HTTP - equiv="X - UA - Compatible" content="IE=edge, chrome=1"/& gt;
<body>
The function sel (v) {
Var n=arr. IndexOf (v);
If (n==1) {
Arr. Push (v);
} else {
Arr. Splice (n, 1);
}
Document. The getElementById (" text ") value=https://bbs.csdn.net/topics/arr;
}
</script>