# web_code **Repository Path**: b1ueblack/web_code ## Basic Information - **Project Name**: web_code - **Description**: code of web - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-29 - **Last Updated**: 2023-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #**web_code** ## Introduction repo for web study ## Content ### 1.JS_study *** ### 2.Vue_study 0. * ES6和ES5的区别: * 在ES5中,块级作用域只能在函数中实现,如for循环的例子 * 在ES6中,let使得非函数有了自己的块级作用域(for/if) * const * 一旦给const修饰的标识符被赋值之后,不能修改 * 在使用const定义标识符,必须进行赋值 * 常量的含义是指向的对象不能修改,但是可以改变对象内部的属性(地址不变内容改变) * 函数的简洁声明 1. * 列表的展示 * 计数器(绑定) * template模板 2. * mustache介绍 * v-once/v-html/v-text 3. * v-bind动态绑定 * : 语法糖 * 绑定class * 绑定数组 4. * 计算属性(computed): * 类似于一个get方法 * computed类似静态赋值,多次调用也只会有一次赋值,效率较高 5. * 事件监听 * @ 语法糖 ---