当前位置:网站首页>Leak detection and vacancy filling (II)
Leak detection and vacancy filling (II)
2022-04-23 06:51:00 【KK should continue to work hard】
Browser kernel
kernel | browser |
---|---|
Trident | IE |
Gecko | Firefox |
Webkit( before )、Blink( Now? ) | Chrome |
Presto | Opera |
jQuery Look for the element
- siblings: Find the siblings of all elements
- next: Find the next sibling element of the selected element
- find: Find the of the selected element all Progeny element
- eq(index): Select the element with the specified index value
a Tag the order of the four pseudo classes
link、visited、hover、active(love hate principle )
Array methods
- push(): Add element at the end of the array , The return value is the length of the array after the element is added
- unshift(): Add an element to the front of the array , The return value is the added array length (IE6、7 I won't support it unshift() Return value )
- pop(): Delete the last element of the array , The return value is the element deleted from the array
- shift(): Delete from the first element of the array , The return value is the deleted value
- splice(): The return value is the deleted element
- Delete function :splice( Start with the index number , Delete a few elements )
- Replacement function :splice( Start with the index number , Replace a few elements , replace content )
- Add functionality :splice( Where to add to the index , Delete a few elements ( This number indicates that from the position added to the index , Delete the element of the corresponding number ), Add content )
- concat(): Concatenate two arrays , The return value is the connected array
- sort(): Sort the array , The return value is a new array arranged
- reverse(): Inversion array , The return value is the inverted array
- slice(start,end): Returns... From an array [start,end) The elements of , This method does not change the original array , Instead, it returns a sub array
- forEach(value,index,arr): Traversal array , If there is an operation to change the value, it will affect the original array , No, return
- map(value,index,arr): Mapping traversal array , Yes return, Returns a new array
- filter(value,index):value Is the current index value , Filter array , Returns a new array that meets the filter criteria
- every(value,index): Determine whether all the contents of the array meet the conditions , In line with return true, Do not conform to return false
- some(): Judge whether there is at least one condition in the array , In line with return true, Do not conform to return false
- reduce(prev,cur,index,initialValue): Iterate over all items of the array , Each value in the array ( From left to right ) Merge , The final calculation is a value .prev、cur Is required ,initialValue Set up index From the first few
- indexOf(): Find the index value of the second occurrence of the element
- lastIndexOf(): Reverse the index value of the element
- includes(): Judge whether the number contains the given value , There is a return true
More array methods :https://www.cnblogs.com/sqh17/p/8529401.html
reduce Advanced use :https://www.jianshu.com/p/e375ba1cfc47
blockquote label
Block reference label , Text will be separated from regular text , On the left 、 Indent the right side ( Increase the outer margin ), And sometimes you use italics
i Labels and em The difference between labels
i The label indicates the effect of displaying italicized text on the content ;
em The tag indicates the emphasis on the content of the contained text . at present , The browser uses italics to display emphasis . future , Browsers may also use other effects to display accent text . When you find these expressions “ emphasize ” The label of , Some screen readers may use different inflection, More favorable SEO;
If italic text is displayed , Use i label .
word-break label
Specify the rules for line wrapping :
normal: Use browser default newline rules .
break-all: Allows line breaks within words .
keep-all: Line breaks are only allowed at half space or hyphen .
white-space label
Specify rules for dealing with whitespace in text :
normal: Default . Blank will be ignored by browser .
pre: Output everything as it is , The text does not wrap
pre-line: All spaces 、 Tabulate and match into a space , Enter unchanged , Text wrapping
pre-wrap: Output everything as it is , Text wrapping
nowrap: Text does not wrap , The text will continue on the same line , Until I met br Label until .
inherit: Inheriting from the parent element white-space Property value
The bed ( Space ) front ( Space )( Space )( Space )( Space ) The bright moon , The frost on the ground
( enter )
look at the bright moon , Bow your head (Tab) Think of home
link Belong to HTML The category of , Load at the same time when parsing ; and script Tags are loaded in sequence .@import Belong to CSS The category of
web Program object scope
- Request scope
- Conversation scope
- Application context
textarea label
autofocus: Specifies that the text area automatically gets the focus after the page is loaded .
cols: Specifies the visible width within the text area .
disabled: Specifies that the text area is disabled .
form: Specify one or more forms to which the text area belongs .
maxlength: Specifies the maximum number of characters in the text area .
name: Specify the name of the text area .
placeholder: Specify a short prompt describing the expected value of the text area .
readonly: Specifies that the text area is read-only .
required: The specified text area is required .
rows: Specifies the number of visible lines in the text area .
wrap: Specifies that when submitted in the form , How to wrap the text in the text area .
BOM Medium history object
- go(): Jump , The default is 0, Jump forward to a positive number , Jump back to a negative number
- back(): Jump back
- forward(): Jump forward
- pushState(state,title,url): After execution, the URL bar will become url The website of , But the content remains the same ( The essence is to add the previous web address record to the history record )
- replaceState(state,title,url): After execution, the URL bar will become url The website of , But the content remains the same ( And pushState The difference is ,replaceState Will replace the current URL that executes this function , Turn it into your own website )
- history.length: The initial value is 1(IE10 The above initial value is 2)
版权声明
本文为[KK should continue to work hard]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230551363928.html
边栏推荐
猜你喜欢
几款笔记软件的优缺点
Add serial number to El table
【ES6】 Promise相关(事件循环,宏/微任务,promise,await/await)
Parse PSD files and map them into components
2020 Jiangsu Collegiate Programming Contest-A.Array
1-4 NodeJS的安装之配置可执行脚本
uniapp 自定义搜索框适配小程序对齐胶囊
.Net Core3.1 使用 RazorEngine.NetCore 制作实体生成器 (MVC网页版)
Detailed explanation and application of PN junction and diode principle
FOC SVPWM function pwmc_ Setphasevoltage parsing
随机推荐
Add serial number to El table
Header内置对象
Counts the number of occurrences of each character in the string
ES6规范详解
Makefile foundation, common functions and general makefile
Redux overview
【ORACLE与mysql的区别】
Navicat 连接 oracle library is not loaded的解决方法
Router对象、Route对象、声明式导航、编程式导航
EF CORE在ASP.NET CORE项目中基于数据库优先模式生成实体模型
【ES6】 Promise相关(事件循环,宏/微任务,promise,await/await)
关于软件的空间占用,安装目录
邮箱字符串判断
Multi cycle verification of El form
SiteServer CMS5.0使用总结
Node的文件系统及Buffer概述
最近编程中遇到的一些问题2021/9/8
ASP.NET CORE配置选项(下篇)
Leak detection and filling (I)
Arm common assembly instructions