摘要: class Utils { swapArray(arr, index1, index2) { arr[index1] = arr.splice(index2, 1, arr[index1])[0]; return arr; }, // 上移 将当前数组index索引与后面一个元素互换位置,向数组后面移动一位 moveUp(arr, ind... 阅读全文
posted @ 2018-12-28 19:08 炫冰G爱 阅读(4026) 评论(0) 推荐(0) 编辑
摘要: function makeForm() { // 创建一个 form const tempForm = document.createElement("form"); tempForm.id = "tempForm"; tempForm.name = "tempForm"; // 添加到 body 中 document.body.appendChi... 阅读全文
posted @ 2018-12-28 19:03 炫冰G爱 阅读(4352) 评论(0) 推荐(0) 编辑