8.7 使用索引-notes】的更多相关文章

七 正确使用索引 一 索引未命中 并不是说我们创建了索引就一定会加快查询速度,若想利用索引达到预想的提高查询速度的效果,我们在添加索引时,必须遵循以下问题 1 范围问题,或者说条件不明确,条件中出现这些符号或关键字:>.>=.<.<=.!= .between...and....like. 2 尽量选择区分度高的列作为索引,区分度的公式是count(distinct col)/count(*),表示字段不重复的比例,比例越大我们扫描的记录数越少,唯一键的区分度是1,而一些状态.性别字…
索引 Notes fetch form focus Disabled fields form’s elements property 阻止提交 快速插入单词 实时统计字数 监听checkbox和radio 监听select 上传文件 本地存储数据 Exercises Content negotiation A JavaScript workbench ♦♦♦♦♦♦♦ Notes 基本是直接拷贝代码了..原书<Eloquent JavaScript> 1.fetch Fetch vs Ajax…
索引 Notes onclick removeEventListener Event objects stopPropagation event.target Default actions Key events Mouse motion Touch events Scroll events Focus events Load event Events and the event loop Timers Debouncing Exercises Balloon Mouse trail Tabs…
索引 Notes js与html DOM 在DOM树中移动 在DOM中寻找元素 改变Document 创建节点 html元素属性 布局 style CSS选择器 动画 Exercises Build a table Elements by tag name The cat Notes 1.js与html 在html中运行js的3种方式: --> <h1>Testing alert</h1> <script>alert("hello!");<…
索引 Notes 背景问题 模块Modules 软件包Packages 简易模块 Evaluating data as code CommonJS modules ECMAScript modules Building and bundling 模块设计建议 Exercises A modular robot Roads module Circular dependencies Notes 1.背景问题 理想的程序:类似于乐高玩具.它具有清晰的结构,工作方式很容易解释,每个部分都扮演着明确的角色…
索引 Notes js创建正则表达式的两种方式 js正则匹配方式(1) 字符集合 重复匹配 分组(子表达式) js正则匹配方式(2) The Date class 匹配整个字符串 Choice patterns 正则匹配的机制 回溯Backtracking Replace 贪婪匹配Greed 动态构建正则表达式 Search The lastIndex property 遍历匹配项 解析INI文件 国际字符 Exercise Regexp golf Quoting style Numbers a…
索引 Notes strict mode js类型 js测试 Debugging Exceptions finally 异常分支 Exercise Retry The locked box Notes 1.strict mode strict mode优势:更严格的检查.删除了一些有问题的语言特性. 把 "use strict" 放在文件顶部(必须是文件顶部,放在其它地方就被当成字符串了)或者函数顶部开启js strict模式. 示例1:没启用strict模式,js就会给你悄摸摸地加一…
索引 Notes Excercise Measuring a robot Robot efficiency Persistent group 注释即笔记: const roads = [ "Alice's House-Bob's House", "Alice's House-Cabin", "Alice's House-Post Office", "Bob's House-Town Hall", "Daria's H…
索引 Notes this Prototype 类 class符号 覆盖派生属性 Maps Symbols iterator接口 Getters, setters, and statics 继承 instanceof Excercise A vector type Groups Iterable groups Borrowing a method Notes 1.this ① 隐式传入this参数 function speak(line) { console.log(`The ${this.ty…
索引 Notes 高阶函数 forEach filter map reduce some findIndex 重写课本示例代码 Excercises Flattening Your own loop Everything Dominant writing direction Notes 1.高阶函数的概念:Functions that operate on other functions, either by taking them as arguments or by returning th…