11 2021 档案
    
    
            
    11.26
    
            
            
        
摘要:// 调用router.routes()来组装匹配好的路由,返回一个合并好的中间件 // 调用router.allowedMethods()获得一个中间件,当发送了不符合的请求时,会返回 `405 Method Not Allowed` 或 `501 Not Implemented` app.use
        阅读全文
            
        
            
    11.25 es6
    
            
            
        
摘要:### 项目初始化 `npm init` `npm init -y` ### 安装项目依赖(包) `npm install` ### 安装 `npm install 包名 --save` `npm install 包名 -g` `npm install 包名@版本号` `npm update` ##
        阅读全文
            
        
            
    11.24
    
            
            
        
摘要:官网下载node 调用选择管理员 ### 项目初始化 `npm init` `npm init -y` ### 安装项目依赖(包) `npm install` `npm install 包名 --save` `npm install 包名 -g` `npm install 包名@版本号` `npm 
        阅读全文
            
        
            
    11.23
    
            
            
        
摘要:var出了块级区域有效 let出了块级区域无效 var声明具有变量提升能力,无论在哪声明,都视为作用域顶部声明 let不具备,离开作用域后,立刻失效(let适合局部变量,容易掌控不易乱) 此刻在区域外的console.log(count);就是无效的 let和const const的声明的作用:创建
        阅读全文
            
        
            
    11.22
    
            
            
        
摘要:scheme - 定义因特网服务的类型。最常见的类型是 http host - 定义域主机(http 的默认主机是 www) domain - 定义因特网域名,比如 runoob.com :port - 定义主机上的端口号(http 的默认端口号是 80) path - 定义服务器上的路径(如果省略
        阅读全文
            
        
            
    11.18
    
            
            
        
            
        
摘要:CSS cursor属性 值描述 url 需使用的自定义光标的 URL。 注释:请在此列表的末端始终定义一种普通的光标,以防没有由 URL 定义的可用光标。 default 默认光标(通常是一个箭头) auto 默认。浏览器设置的光标。 crosshair 光标呈现为十字线。 pointer 光标呈
        阅读全文
            
        
            
    11.16
    
            
            
        
摘要:overflow: hidden;在父元素上设置,子元素就不会超出父元素 轮播图 $(function(){ var current=0; var count=$(".pics-list>li").length; //移动的方法 function move(){ //执行方法 $(".points-
        阅读全文
            
        
            
    11.15
    
            
            
        
摘要://声明值获取鼠标位置 var x = e.offsetX, y = e.offsetY; // 小黑框的左上角位置,-100是让鼠标永远在小黑框的中间位置 var 左:left = x-(+)数值,上:top = y-(+)数值; //closest():找离它最近的选择器
        阅读全文
            
        
            
    11.12
    
            
            
        
摘要:$(function(){ //行内样式 display // 隐藏 display:none 显示 display:原始值 如果没有原始值,则删除display样式 // 带时间的路线 左上角<->右下角 $(".show").click(function(){ // $("div").show(
        阅读全文
            
        
            
    11.11
    
            
            
        
摘要:DOM操作 $(function(){ //内部插入 =>子节点 $(".append").click(function(){ // 后面 $("ul").append("<li>列表 append</li>"); // $("<li>列表append</li>").appendTo($("ul")
        阅读全文
            
        
            
    11.10
    
            
            
        
摘要:nction(){ // 基本事件 // $(".child").click(function(){ // console.log(0) // }) // $(".child").mousemove(function(e){ // console.log(ee.offsetX,e.offsetY) 
        阅读全文
            
        
            
    11.9
    
            
            
        
摘要:attr(属性名) 获取属性值 attr(属性名,属性值) 设置属性 $("span").attr("data-id","1002") console.log($("span").attr("id")) console.log($("span").attr("data-id")) 没有参数时获取,带
        阅读全文
            
        
            
    11.8面试题
    
            
            
        
摘要:// 直接赋值 对象的完全引用 // var stu2=stu1; // stu1.class.name="Web211005" // stu1.id=10001 // console.log(stu2) eq 第几个索引 $("li:eq(2)") gt 大于第几个索引 $("li:gt(2)")
        阅读全文
            
        
            
    11.5
    
            
            
        
摘要:dom document.getElementById(); document.getElementsByClassName(); document.getElementsByName(); document.getElementsByTagName(); document.querySelecto
        阅读全文
            
        
            
    11.4  基本语法 创建对象
    
            
            
        
摘要:基本语法 /* \d 0-9任意一个数字 [] 其中的任意一个字符 [0-9] \d 12 => [1][2] 12 [12a] 1、2、a [a-zA-Z0-9] [^] 非其中的任意一个字符 [^0-9] \w 数字 字母 下划线 . 任意一个字符 [.] . | 或 2|3 2、3 1[0-2
        阅读全文
            
        
            
    11.2  (Visual Studio Code)
    
            
            
        
摘要:Number 数值 整数和小数 String 字符串(字符) "" '' bool true/flase null 没有 undefined symbol es6 var a; console.log(typeof a); // object:正则、数组 字面量(json对象) // functio
        阅读全文
            
        
            
    11.1
    
            
            
        
摘要:display:inline-block 和display:flex 和display:block的比较 display:block block(块级元素): 使元素变成块级元素,独占一行,在不设置自己的宽度的情况下,块级元素会默认填满父级元素的宽度. 能够改变元素的height,width的值. 
        阅读全文
            
        
            
    10.29
    
            
    
摘要:Iframe - 设置高度与宽度 height 和 width 属性用来定义iframe标签的高度与宽度。 属性默认以像素为单位, 但是你可以指定其按比例显示 (如:"80%")。 Iframe - 移除边框 frameborder 属性用于定义iframe表示是否显示边框。 设置属性值为 "0"
        阅读全文
            
        
                    
                
浙公网安备 33010602011771号