js
huakaiwuxing
这个作者很懒,什么都没留下…
展开
-
针对鼠标移入移出和点击事件冲突的解决
$('.export').hover(function(){ $(this).addClass("active"); }).mouseout(function(){ if($(this).html() != _nowText){ $(this).removeClass("active"); } }); var _nowText ; $(".export_list .export").click(function () { $(this).ad.原创 2021-01-05 16:18:40 · 1735 阅读 · 0 评论 -
js基础知识整理(二)
1.变量的声明提前 使用var关键字声明的变量,会在所有的代码执行之前被声明(但是不会赋值) 但是如果声明变量时不使用var关键字则变量声明不会被提前 console.log("a="+a); //undefind(若去掉var报错) var a = 123; 2.函数的声明提前 使用函数声明形式创建的函数 function 函数名 (){} 它会在...原创 2019-10-25 16:25:05 · 140 阅读 · 0 评论 -
js基础知识整理(一)
1.js的数据类型 基本数据类型:string、number、boolean、null、undefind 引用数据类型:object 只要不是基本的5种,那都是对象 2.字符串解析 parseInt() parsefloat() a='123px' a=parsentInt(a) //123 a=Number(a) //NAN a='123a45678' a...原创 2019-10-25 15:00:56 · 166 阅读 · 0 评论 -
css基础知识整理
1.搜索引擎检索信息 meta标签的的description和keywords 2.伪类选择器 input:focus //获取焦点 input::selection{ } //为网页中选中的文字设置样式,该伪类在火狐中需要单独写 -webkit fox ······ 3.伪元素 (1)表示元素中的特殊位置 p:first-letter 首字母 p:first-line ...原创 2019-10-25 09:52:56 · 115 阅读 · 0 评论