1.js代码引入了外部样式后,里面的代码不执行
2.js代码在任何位置都可以执行
3.js 是先找对象 后改属性 或者调用方法
找对象 方法 var box=document.getElementBy() document.getElementsByTagName()
该属性 方法 box.style.background="pink"; 改对象的背景颜色为粉色
4.js 中调试方法用 console.log(); 控制台调试
5, js 中 的 输出数组打印 类似于 console.dir() 类似于php中的print_r()
6. js 中输出内容 类似于document.write() 类似于php中的echo 这个打印方法 尽量不要放在方法里面 不然会覆盖所有 内容