摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>扩展运算符应用</ 阅读全文
posted @ 2023-02-26 21:57
垂序葎草
阅读(20)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>扩展运算符</ti 阅读全文
posted @ 2023-02-26 21:51
垂序葎草
阅读(15)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>rest参数</t 阅读全文
posted @ 2023-02-26 21:48
垂序葎草
阅读(23)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>函数参数默认值</ 阅读全文
posted @ 2023-02-26 21:47
垂序葎草
阅读(35)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 创建一个构造函数,专门用来创建Person对象的 * 构造函数就是一个普通的函数,创建方 阅读全文
posted @ 2023-02-26 21:37
垂序葎草
阅读(22)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 创建一个对象 */ var obj = { name:"孙悟空", age:18, ge 阅读全文
posted @ 2023-02-26 21:36
垂序葎草
阅读(21)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 解析器在调用函数每次都会向函数内部传递进一个隐含的参数, * 这个隐含的参数就是this 阅读全文
posted @ 2023-02-26 21:35
垂序葎草
阅读(17)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 函数作用域 * - 调用函数时创建函数作用域,函数执行完毕以后,函数作用域销毁 * - 阅读全文
posted @ 2023-02-26 21:33
垂序葎草
阅读(20)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 变量的声明提前 * - 使用var关键字声明的变量,会在所有的代码执行之前被声明(但是不 阅读全文
posted @ 2023-02-26 21:31
垂序葎草
阅读(26)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 作用域 * - 作用域指一个变量的作用的范围 * - 在JS中一共有两种作用域: * 1 阅读全文
posted @ 2023-02-26 21:29
垂序葎草
阅读(25)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> var obj = { name:"孙悟空", age:18, gender:"男", addre 阅读全文
posted @ 2023-02-26 21:27
垂序葎草
阅读(49)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> //函数对象() /* * 立即执行函数 * 函数定义完,立即被调用,这种函数叫做立即执行函数 * 阅读全文
posted @ 2023-02-26 21:25
垂序葎草
阅读(22)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> /* * 创建一个函数,用来计算三个数的和 * * 可以使用 return 来设置函数的返回值 阅读全文
posted @ 2023-02-26 21:24
垂序葎草
阅读(39)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 定义一个用来求两个数和的函数 * 可以在函数的()中来指定一个或多个形参(形式参数) * 阅读全文
posted @ 2023-02-26 21:17
垂序葎草
阅读(25)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 函数 function * - 函数也是一个对象 * - 函数中可以封装一些功能(代码) 阅读全文
posted @ 2023-02-26 21:15
垂序葎草
阅读(17)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> //创建一个对象 //var obj = new Object(); /* * 使用对象字面量来创 阅读全文
posted @ 2023-02-26 21:14
垂序葎草
阅读(24)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 基本数据类型 * String Number Boolean Null Undefine 阅读全文
posted @ 2023-02-26 21:13
垂序葎草
阅读(20)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> var obj = new Object(); /* * 向对象中添加属性 * 属性名: * - 阅读全文
posted @ 2023-02-26 21:11
垂序葎草
阅读(41)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * JS中数据类型 * - String 字符串 * - Number 数值 * - Boo 阅读全文
posted @ 2023-02-26 21:10
垂序葎草
阅读(20)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 向页面中输出连续的数字 */ /*var n = 1; document.write(n 阅读全文
posted @ 2023-02-26 21:09
垂序葎草
阅读(24)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 条件分支语句也叫switch语句 * 语法: * switch(条件表达式){ * ca 阅读全文
posted @ 2023-02-26 21:07
垂序葎草
阅读(34)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * if语句 * 语法二: * if(条件表达式){ * 语句... * }else{ * 阅读全文
posted @ 2023-02-26 21:04
垂序葎草
阅读(66)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 流程控制语句 * - JS中的程序是从上到下一行一行执行的 * - 通过流程控制语句可以 阅读全文
posted @ 2023-02-26 21:04
垂序葎草
阅读(29)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 我们的程序是由一条一条语句构成的 * 语句是按照自上向下的顺序一条一条执行的 * 在JS 阅读全文
posted @ 2023-02-26 21:02
垂序葎草
阅读(35)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * , 运算符 * 使用,可以分割多个语句,一般可以在声明多个变量时使用, */ //使用, 阅读全文
posted @ 2023-02-26 21:00
垂序葎草
阅读(69)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 条件运算符也叫三元运算符 * 语法: * 条件表达式?语句1:语句2; * - 执行的流 阅读全文
posted @ 2023-02-26 20:59
垂序葎草
阅读(42)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 相等运算符用来比较两个值是否相等, * 如果相等会返回true,否则返回false * 阅读全文
posted @ 2023-02-26 20:58
垂序葎草
阅读(34)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 在字符串中使用转义字符输入Unicode编码 * \u四位编码 */ console.l 阅读全文
posted @ 2023-02-26 20:56
垂序葎草
阅读(15)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * 通过关系运算符可以比较两个值之间的大小关系, * 如果关系成立它会返回true,如果关系 阅读全文
posted @ 2023-02-26 20:55
垂序葎草
阅读(33)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * = * 可以将符号右侧的值赋值给符号左侧的变量 * += * a += 5 等价于 a 阅读全文
posted @ 2023-02-26 20:53
垂序葎草
阅读(31)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* * JS中为我们提供了三种逻辑运算符 * ! 非 * - !可以用来对一个值进行非运算 * 阅读全文
posted @ 2023-02-26 20:48
垂序葎草
阅读(39)
评论(0)
推荐(0)
摘要:
20230302 顺利通过 20230306 如果r扫描用while,不能贪心的减少不必要的字母 20230314 顺利通过 原题解 ###题目 约束 ###题解 class Solution { public: unordered_map <char, int> ori, cnt; bool ch 阅读全文
posted @ 2023-02-26 20:00
垂序葎草
阅读(24)
评论(0)
推荐(0)
摘要:
20230302 顺利通过 20230306 顺利通过 20230314 顺利通过 原题解 ###题目 约束 ###题解 ####解法一 class Solution { public: void sortColors(vector<int>& nums) { int n = nums.size() 阅读全文
posted @ 2023-02-26 19:56
垂序葎草
阅读(23)
评论(0)
推荐(0)
摘要:
20230226 顺利通过 20230227 顺利通过 20230301 顺利通过 20230304 顺利通过 20230314 顺利通过 原题解 ###题目 约束 ###题解 class Solution { public: int minDistance(string word1, string 阅读全文
posted @ 2023-02-26 01:07
垂序葎草
阅读(32)
评论(0)
推荐(0)
摘要:
20230226 顺利通过 20230227 顺利通过 20230301 顺利通过 20230304 顺利通过 20230314 顺利通过 原题解 ###题目 约束 ###题解 ####解法一 class Solution { public: int climbStairs(int n) { int 阅读全文
posted @ 2023-02-26 00:34
垂序葎草
阅读(28)
评论(0)
推荐(0)
浙公网安备 33010602011771号