摘要:
js事件流 事件冒泡 从最具体的元素开始一层层向上传递,就是从元素本身一直到body html document window(远古ie8直到document); 事件捕获 从最不具体的元素开始一层层向下传递,同样是从window document html body element(远古ie不再支 阅读全文
摘要:
forin forof forEach $.each var andy = 'dog eat bone.'; var arr = []; traditional for 远古时候的for循环最常用也最经典。 for(let i = 0 ; i { arr.push(v) }) log(arr)//[ 阅读全文