Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
const ul = document.querySelector('ul');
ul.onclick = function(){
console.log(event.target, event.target.dataset.index);
console.log(event.currentTarget);
console.log(event.target === event.currentTarget);
};
console.log(str.split('', 4));
let str = 'PHP中文网';
//输出小写
console.log(str.toLowerCase());
//原样输出
console.log(str);
let str = 'php中文网';
//输出大写
console.log(str.toUpperCase());
//原样输出
console.log(str);
let str = ' php 中文网 ';
//去掉左右空隙
console.log(str.trim());
//原样输出
console.log(str);
console.log(str.includes('php'));