08 2018 档案
判断字符串、数组、对象的数据类型
摘要:1 var str1=new String('str1'); 2 var str2='str2'; 3 console.log(typeof str1);//object 4 console.log(typeof str2);//string 5 console.log(str1 instanceof String);//true 6 console.log(str2 instanc...
阅读全文
css选择器的优先级
摘要:选择器的优先级表述为4个部分,用0,0,0,0表示。 !important--1,0,0,0 行内样式 ID选择器--0,1,0,0 类选择器(例如,.example)、属性选择器(例如, [type="radio"])或伪类(例如, :hover)--0,0,1,0 元素(例如, h1)和伪元素(
阅读全文
浙公网安备 33010602011771号