diff --git "a/\345\217\266\351\242\200/index.html" "b/\345\217\266\351\242\200/index.html"
new file mode 100644
index 0000000000000000000000000000000000000000..1e2a0732364074c94e17844e5042ba1534925446
--- /dev/null
+++ "b/\345\217\266\351\242\200/index.html"
@@ -0,0 +1,53 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
+ 用户名:
+ 密 码:
+ 确认密码:
+
+
+
+
+
+
+
+
+
diff --git "a/\345\217\266\351\242\200/js/base.js" "b/\345\217\266\351\242\200/js/base.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a35cdc29386759002b7e06602565886b69707c79
--- /dev/null
+++ "b/\345\217\266\351\242\200/js/base.js"
@@ -0,0 +1,302 @@
+// 题目如下,请直接利用写好的方法,并且直接写在题目下方,要可以运行和输出,如第1题所示
+
+/*
+1、题目描述:
+找出元素 item 在给定数组 arr 中的位置
+输出描述:
+如果数组中存在 item,则返回元素在数组中的位置,否则返回 -1
+示例1
+输入
+[ 1, 2, 3, 4 ], 3
+输出
+2
+
+function indexOf(arr, item) {
+
+}
+*/
+
+
+console.log(`======= 第1题 =======`);
+
+var arr1 = [1, 2, 3, 4]
+
+function indexOf(arr1, item)
+
+{
+ return console.log(arr1.indexOf(item));
+}
+
+var item = 3;
+
+indexOf([1,2,3,4],3)
+
+/*
+2、题目描述:
+计算给定数组 arr 中所有元素的总和
+输入描述:
+数组中的元素均为 Number 类型
+示例1
+输入
+
+[ 1, 2, 3, 4 ]
+输出
+
+10
+
+function sum(arr) {
+
+}
+*/
+console.log(`======= 第2题 =======`);
+function sum(arr)
+{
+ return arr.reduce((x, y) => x + y)
+}
+
+console.log(sum([ 1, 2, 3, 4 ]));
+/*
+3、题目描述
+在数组 arr 末尾添加元素 item。不要直接修改数组 arr,结果返回新的数组
+示例1
+输入
+
+[1, 2, 3, 4], 10
+输出
+
+[1, 2, 3, 4, 10]
+
+function append(arr, item) {
+
+}
+*/
+console.log(`======= 第3题 =======`);
+
+function append(arr, item)
+{
+ var arr12 = arr.slice();
+ arr12.push(item);
+ return arr12
+}
+
+console.log(append([1, 2, 3, 4], 10));
+
+/*
+4、题目描述
+合并数组 arr1 和数组 arr2。不要直接修改数组 arr,结果返回新的数组
+示例1
+输入
+
+[1, 2, 3, 4], ['a', 'b', 'c', 1]
+输出
+
+[1, 2, 3, 4, 'a', 'b', 'c', 1]
+
+function concat(arr1, arr2) {
+
+}
+*/
+console.log(`======= 第4题 =======`);
+function concat(arr1, arr2)
+
+{
+ return arr1.concat(arr2);
+}
+
+console.log(concat([1, 2, 3, 4], ['a', 'b', 'c', 1]));
+
+/*
+5、题目描述
+为数组 arr 中的每个元素求二次方。不要直接修改数组 arr,结果返回新的数组
+示例1
+输入
+
+[1, 2, 3, 4]
+输出
+
+[1, 4, 9, 16]
+
+function square(arr) {
+
+}
+*/
+console.log(`======= 第5题 =======`);
+
+function square(arr)
+{
+ let y = arr.slice(0);
+
+ y.forEach(function (item, index)
+ {
+ y[index] = item * item;
+ })
+ return y;
+}
+
+console.log(square([1, 2, 3, 4]));
+
+/*
+6、题目描述
+定义一个计算圆面积的函数area_of_circle(),它有两个参数:
+
+r: 表示圆的半径;
+pi: 表示π的值,如果不传,则默认3.14
+
+function area_of_circle(r, pi) {
+
+}
+*/
+console.log(`======= 第6题 =======`);
+function area_of_circle(r, pi = 3.14)
+
+ {
+ return pi * r * r
+ }
+
+console.log(area_of_circle(2));
+/*
+7、题目描述
+用jQuery编程实现获取选中复选框值的函数abc
+HTML结构如下:
+
+
+*/
+console.log(`======= 第7题 =======`);
+function abc()
+{
+ var input = $('input')
+ var arr13 = [];
+ for (let i = 0; i < input.length; i++)
+ {
+ if (input[i].checked === true)
+ {
+ arr13.push(input[i].value)
+ }
+ }
+ console.log(arr13);
+}
+
+/*
+8、题目描述
+实现sel函数显示当前选项的文本和值
+
+
+
+
+function getOptionVal(){
+
+}
+*/
+console.log(`======= 第8题 =======`);
+function getOptionVal()
+{
+ var s = $('form select');
+ var s2 = $('form select option');
+ console.log(s.val());
+ if (s.val() === 'a')
+ {
+ return s2[0].textContent;
+ } else if (s.val() === 'b')
+ {
+ return s2[1].textContent;
+ } else if (s.val() === 'c')
+ {
+ return s2[2].textContent;
+ }
+}
+function _s(getOptionVal)
+{
+ console.log(getOptionVal);
+}
+
+/*
+9、题目描述
+要求用jQuery完成: 点击id为btn的按钮
+
+a.判断id为username的输入是否为空,如果为空,则弹出“用户名不能为空”的提示。
+
+b.判断id为password的输入字符串个数是否小于6位,如果小于6位,则弹出“你输入的密码长度不可以少于6位”的提示
+
+HTML结构如下:
+
+ 用户名:
+ 密 码:
+ 确认密码:
+
+
+*/
+console.log(`======= 第9题 =======`);
+
+
+$('button').on('click', function ()
+{
+ var username1 = $('#username');
+ var pwd = $('#password');
+
+ if (username1[0].value === null || username[0].value.length === 0)
+ {
+ alert('用户名不能为空!');
+ }
+ if (pwd[0].value.length < 6)
+ {
+ alert('你输入的密码长度不可以少于6位!');
+ }
+}
+)
+
+/*
+10、题目描述
+
+在下面的HTML文档中,编写函数test() ,实现如下功能:
+
+(1)当多行文本框中的字符数超过20个,只截取20个字符
+
+(2)在id为number的td中显示文本框的字符个数
+
+HTML结构如下:
+
+
+
+function test(){
+
+}
+*/
+console.log(`======= 第10题 =======`);
+function test()
+{
+ var f = $('#feedBack')
+
+ var t = [0].value;
+
+ if (t.length > 20)
+ {
+ t = t.substring(0,20);
+ }
+
+ var len = $('#number');
+
+ len[0].textContent = t.length;
+}
\ No newline at end of file
diff --git "a/\345\217\266\351\242\200/js/jquery-3.6.0.js" "b/\345\217\266\351\242\200/js/jquery-3.6.0.js"
new file mode 100644
index 0000000000000000000000000000000000000000..4dd8c323baf8db3e6ef73697e10e43ab921e1198
--- /dev/null
+++ "b/\345\217\266\351\242\200/js/jquery-3.6.0.js"
@@ -0,0 +1,10883 @@
+/*!
+ * jQuery JavaScript Library v3.6.0
+ * https://jquery.com/
+ *
+ * Includes Sizzle.js
+ * https://sizzlejs.com/
+ *
+ * Copyright OpenJS Foundation and other contributors
+ * Released under the MIT license
+ * https://jquery.org/license
+ *
+ * Date: 2021-03-02T17:08Z
+ */
+( function( global, factory ) {
+
+ "use strict";
+
+ if ( typeof module === "object" && typeof module.exports === "object" ) {
+
+ // For CommonJS and CommonJS-like environments where a proper `window`
+ // is present, execute the factory and get jQuery.
+ // For environments that do not have a `window` with a `document`
+ // (such as Node.js), expose a factory as module.exports.
+ // This accentuates the need for the creation of a real `window`.
+ // e.g. var jQuery = require("jquery")(window);
+ // See ticket #14549 for more info.
+ module.exports = global.document ?
+ factory( global, true ) :
+ function( w )
+ {
+ if ( !w.document )
+ {
+ throw new Error( "jQuery requires a window with a document" );
+ }
+ return factory( w );
+ };
+ } else {
+ factory( global );
+ }
+
+// Pass this if window is not defined yet
+} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
+
+// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
+// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
+// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
+// enough that all such attempts are guarded in a try block.
+"use strict";
+
+var arr = [];
+
+var getProto = Object.getPrototypeOf;
+
+var slice = arr.slice;
+
+var flat = arr.flat ? function( array ) {
+ return arr.flat.call( array );
+} : function( array ) {
+ return arr.concat.apply( [], array );
+};
+
+
+var push = arr.push;
+
+var indexOf = arr.indexOf;
+
+var class2type = {};
+
+var toString = class2type.toString;
+
+var hasOwn = class2type.hasOwnProperty;
+
+var fnToString = hasOwn.toString;
+
+var ObjectFunctionString = fnToString.call( Object );
+
+var support = {};
+
+var isFunction = function isFunction( obj ) {
+
+ // Support: Chrome <=57, Firefox <=52
+ // In some browsers, typeof returns "function" for HTML