From 7decf3eac7edfbee4253725d9f9dd35dcdbe746b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=88=E6=9D=B0?= <19892226650@139.com> Date: Thu, 17 Nov 2022 15:30:28 +0000 Subject: [PATCH 1/2] =?UTF-8?q?38=E5=BC=A0=E5=85=88=E6=9D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张先杰 <19892226650@139.com> --- ...\346\222\255\344\275\234\344\270\232.html" | 45 ++++++ ...\347\272\247\346\212\275\345\245\226.html" | 131 ++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 "38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17-BOM\345\233\276\347\211\207\350\275\256\346\222\255\344\275\234\344\270\232.html" create mode 100644 "38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17js\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232\347\217\255\347\272\247\346\212\275\345\245\226.html" diff --git "a/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17-BOM\345\233\276\347\211\207\350\275\256\346\222\255\344\275\234\344\270\232.html" "b/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17-BOM\345\233\276\347\211\207\350\275\256\346\222\255\344\275\234\344\270\232.html" new file mode 100644 index 0000000..1d37868 --- /dev/null +++ "b/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17-BOM\345\233\276\347\211\207\350\275\256\346\222\255\344\275\234\344\270\232.html" @@ -0,0 +1,45 @@ + + + + + + + Document + + + + + +
+ +
+ + + + \ No newline at end of file diff --git "a/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17js\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232\347\217\255\347\272\247\346\212\275\345\245\226.html" "b/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17js\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232\347\217\255\347\272\247\346\212\275\345\245\226.html" new file mode 100644 index 0000000..0c28c63 --- /dev/null +++ "b/38\345\274\240\345\205\210\346\235\260/\344\275\234\344\270\232/2022-11-17js\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232\347\217\255\347\272\247\346\212\275\345\245\226.html" @@ -0,0 +1,131 @@ + + + + + + + + 浏览器对象模型(Browser Object Model) + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
郑玮喆庄云廖治先郑文源戴俊锋陈昊童
谢金金占志新张淑芳刘永潘廖柏成郑宗帅
李韦峰吴欣燕陈梅香陈立智袁贵森赵浩敏
林世涛罗启恒卢国建黄柱菘陈鹏张耀仁
陈华伟张正豪韦仲晓黄富贵陆建锋曾德森
吴文龙陆利群黄雄王世财张先杰胡基耀
马鑫涛李涛杨凌翔罗此东唐皓颖白婉婷
+ + + \ No newline at end of file -- Gitee From b3db81eff07c292a42aced3415ab687ca5b713fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=88=E6=9D=B0?= <19892226650@139.com> Date: Thu, 17 Nov 2022 15:31:25 +0000 Subject: [PATCH 2/2] =?UTF-8?q?38=E5=BC=A0=E5=85=88=E6=9D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张先杰 <19892226650@139.com> --- ...32\350\257\276\347\254\224\350\256\260.md" | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-11-17js\347\254\254\345\215\201\344\270\203\350\212\202\344\270\223\344\270\232\350\257\276\347\254\224\350\256\260.md" diff --git "a/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-11-17js\347\254\254\345\215\201\344\270\203\350\212\202\344\270\223\344\270\232\350\257\276\347\254\224\350\256\260.md" "b/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-11-17js\347\254\254\345\215\201\344\270\203\350\212\202\344\270\223\344\270\232\350\257\276\347\254\224\350\256\260.md" new file mode 100644 index 0000000..0770ec0 --- /dev/null +++ "b/38\345\274\240\345\205\210\346\235\260/\347\254\224\350\256\260/2022-11-17js\347\254\254\345\215\201\344\270\203\350\212\202\344\270\223\344\270\232\350\257\276\347\254\224\350\256\260.md" @@ -0,0 +1,33 @@ +弹窗 +弹窗输入 +// window.prompt('请输入') +//弹窗 +// window.alert('警告') +var result = window.confirm('确定取消吗?'); +然后要有返回值 +result 用if来判断true,还是false +定时器:setTimeout():在设定的毫秒数后调用函数或计算表达式; +BOM抽奖 +在body中设置填写名单 +抽奖开始 +// +// +//获取对应的td对象 +var tdObj = document.getElementById('td' + num); +#tab td设置边款 +//设置背景颜色 +tdObj.style.backgroundColor = 'red'; +//将结果显示到span中 + document.getElementById('sp').innerText = '恭喜你,获得了:' + tdObj.innerText; +设计随机数 +//获取1-9随机数 + var num = parseInt(Math.random() * 8 + 1); + function start() { +//清空:初始化白色背景 +//times值到大30清除把他变成0 +times = 0; +for (let i = 1; i <= 9; i++) { + var tdObj = document.getElementById('td' + i); + tdObj.style.backgroundColor = 'white'; +} +昨天天气不好,浅浅休息一下 \ No newline at end of file -- Gitee