From 63638fff16fcc17fb1e8c1bd45f69a5405b20b7d Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 28 Dec 2020 09:56:22 +0800 Subject: [PATCH] js --- javascript/21 http请求.md | 5 ++++- javascript/23BOM.md | 14 ++++++++++++++ javascript/24递归闭包this.md | 22 ++++++++++++++++++++++ javascript/25from.md | 22 ++++++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 javascript/23BOM.md create mode 100644 javascript/24递归闭包this.md create mode 100644 javascript/25from.md diff --git a/javascript/21 http请求.md b/javascript/21 http请求.md index 09da96c..ed9f007 100644 --- a/javascript/21 http请求.md +++ b/javascript/21 http请求.md @@ -14,4 +14,7 @@ xhr.send(null) // xhr.status 状态码 // xhr.responseText 后台返回内容 -``` \ No newline at end of file +``` + +JSON + diff --git a/javascript/23BOM.md b/javascript/23BOM.md new file mode 100644 index 0000000..9a2c909 --- /dev/null +++ b/javascript/23BOM.md @@ -0,0 +1,14 @@ +# BOM + +## window对象 + +- open +- moveTo +- moveBy + +## location + +## navigator + +## history + diff --git a/javascript/24递归闭包this.md b/javascript/24递归闭包this.md new file mode 100644 index 0000000..2cde333 --- /dev/null +++ b/javascript/24递归闭包this.md @@ -0,0 +1,22 @@ +# 一些较难的 + +## 递归 + +自己调用自己 + +```javascript +function name(num){ + var sum = sum + name(num--) +} +``` + + + +## 闭包 + + + + + +## this指向 + diff --git a/javascript/25from.md b/javascript/25from.md new file mode 100644 index 0000000..09bba7a --- /dev/null +++ b/javascript/25from.md @@ -0,0 +1,22 @@ +# from + +提交表单 + +submit() + +阻止提交 + +preventDefault() + +重置表单 + +reset() + +获取表单字段 + +elements + + + + +