When I was reading the Front-end developer's roadmap, I deeply agree with "to build as many projects as possible" in Important Tip part and release that is exactly what I lack in my CV and GitHub. Thus, I joined the Build 30 JavaScript Projects in 30 Days challenge, created by Wes Bos, and will record down and track my study path in this challenge. 🌟
- Self-defined HTML attribute form:
data
-name. Use in the same way as standard HTML tag attribute, like<div class ="key" data-name="65">
- Attribute selector
- querySelector
- Can not add evetListener to an array, have to use forEach to get every element.
- When use
transform: rotate(Xdeg)
to rotate an element with X degree in CSS, in default it rotates on the centre middle of that element. ->Fix: usetransform-origin:X%
- setInterval(func, delayTime: 重复调用一个函数或执行一个代码片段,在每次调用之间具有固定的时间间隔,单位为毫秒。ex: setInterval(setDate, 1000); 每隔1秒就调用一次函数setDate