2023年11月10日
摘要: 通过DOM对HTML进行操作 1、获取Element对象 2、常见的HTMLElement对象的使用 查看文档:https://www.w3cschool.cn/jsref/ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> 阅读全文
posted @ 2023-11-10 21:24 na2co3- 阅读(59) 评论(0) 推荐(0)
摘要: HIstory对象 Location对象 3秒之后跳转到首页 document.write('3秒后跳转到首页'); setTimeout(function(){ location.href = "https://www.baidu.com"; },3000); 阅读全文
posted @ 2023-11-10 17:05 na2co3- 阅读(13) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2023-11-10 16:26 na2co3- 阅读(12) 评论(0) 推荐(0)