userHandle.php
cp.php
Vue列表渲染与条件渲染
JS部分const insertComment = function (ele,isBtn = false) { if (event.key === 'Enter' || isBtn) { // 1. 非空判断 if...
JS代码部分 // 获取item的所有li标签 let list = document.querySelectorAll('.item > *') //给所有li标签字体颜色改为红色 (第一种遍历方法) list.forEach(li => (li....
// 使用class类实现随机数生成并排列及简易计算class Rndnumber { constructor(arr,num) { this.arr = arr this.num = num } get...
// 数组的解构let [uname, email] = ['杨过', '123@qq.com']console.log(uname, email);[uname,...arrs] = ['小龙女', '123@qq.com' , '女']conso...
// 1.一维数组const arr = [1,2,3,4,5]console.log(arr[0],arr[4]);// 2.多维数组 (成员还是数组)const arr1 = [ [1,2,3,4,5], [6,7,8,9,10], ...
const USER_NAME = "啊墨"; //常量console.log(USER_NAME);let userName = "子墨"; //变量console.log("hello" + userName);// 命名函数function ...