2019-10-13 22:15:52 +08:00

36 lines
935 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 20191013
![js](https://img.shields.io/badge/language-js-orange.svg)
* 复习上节内容
[linkToHtml](./test1.html)
* setTimeout
[linkToHtml](./setTimeout1.html)
* `setTimeout(<function>,time)` 一次性定时器
* function: 函数体
* time: 每次重复的时间
* return timerID 该定时器ID用于清除定时器
* `clearTimeout(timerID)` 清除定时器
* timerID 定时器ID
* setTimeout案例
[linkToHtml](./setTimeout2.html)
* input type="hidden" 创建隐藏域,将不想被用户知道还想发送的东西放在里边
* 表单属性操作
* 表单中属性名等于属性值html表单可以简写
* js中操作属性时值为Boolean
* 颜色渐变案例
[linkToHtml](./colorGradient.html)
* 不要使用js进行小数计算精度问题
* 宽度渐变案例
[linkToHtml](./widthGradient.html)
* 作业
* 带A4纸
* 笔记本
* 代码三遍