摘要:
class Utils { swapArray(arr, index1, index2) { arr[index1] = arr.splice(index2, 1, arr[index1])[0]; return arr; }, // 上移 将当前数组index索引与后面一个元素互换位置,向数组后面移动一位 moveUp(arr, ind... 阅读全文
摘要:
function makeForm() { // 创建一个 form const tempForm = document.createElement("form"); tempForm.id = "tempForm"; tempForm.name = "tempForm"; // 添加到 body 中 document.body.appendChi... 阅读全文