JS-jQuery:百科
| ylbtech-JS-jQuery:百科 |
| 1.返回顶部 |
- 中文名:极快瑞
- 外文名:jQuery
- 核心理念:write less,do more
- 发布时间:2006年1月
- 发布人:John Resig
- 发布地点:美国纽约
- 最新版本:jQuery 3.4.1
- 第一个版本:jQuery 1.0(2006年1月)
- 内部引入库:Sizzle.js
| 2.返回顶部 |
发展历程
|
1
2
3
4
5
6
7
|
Behaviour.register({ '#example li': function(e){ e.onclick = function(){ this.parentNode.removeChild(this); } }}); |
|
1
2
3
4
5
|
$('#example li').bind('click',function(){ this.parentNode.removeChild(this);}); 第二个例子是为不同的元素注册不同的事件: |
|
1
2
3
4
5
6
7
8
9
10
11
12
|
Behaviour.register({ 'b.someclass' : function(e){ e.onclick = function(){ alert(this.innerHTML); } }, '#someid u' : function(e){ e.onmouseover = function(){ this.innerHTML = "BLAH!"; } }}); |
|
1
2
3
4
5
6
|
$('b.someclass').bind('click',function(){ alert(this.innerHTML);});$('#someid u').bind('mouseover',function(){ this.innerHTML = 'BLAH!';}); |
|
1
2
3
4
5
6
7
8
9
10
11
12
|
Behaviour.register({ '#foo ol li': function(a) { a.title = "List Items!"; a.onclick = function(){ alert('Hello!'); }; }, '#foo ol li.tmp': function(a) { a.style.color = 'white'; }, '#foo ol li.tmp .foo': function(a) { a.style.background = 'red';}}); |
|
1
2
3
4
5
6
7
|
$('#foo ol li') .set('title','List Items!') .bind('click',function(){ alert('Hello!'); }) .select('.tmp') .style('color','white') .select('.foo') .style('background','red'); |
|
1
2
3
4
5
6
7
8
9
10
|
//1.4.2$("table").delegate("td", "hover", function(){ $(this).toggleClass("hover");});//1.3.2$("table").each(function(){ $("td", this).live("hover", function(){ $(this).toggleClass("hover"); });}); |
编程开发
语言特点
工作原理
语言基础
选择器
|
1
|
$("p") |
|
1
|
$("#test") |
|
1
|
$(".test") |
事件处理
|
1
|
$("p").click(); |
|
1
2
3
|
$("p").click(function(){ // 动作触发后执行的代码!!}); |
|
1
2
3
|
$("p").click(function(){ $(this).hide();}); |
|
1
2
3
|
$("p").dblclick(function(){ $(this).hide();}); |
|
1
2
3
|
$("#p1").mouseenter(function(){ alert("You entered p1!");}); |
|
1
2
3
|
$("#p1").mouseleave(function(){ alert("Bye! You now leave p1!");}); |
|
1
2
3
|
$("#p1").mousedown(function(){ alert("Mouse down over p1!");}); |
|
1
2
3
|
$("#p1").mouseup(function(){ alert("Mouse up over p1!");}); |
|
1
2
3
4
5
6
|
$("#p1").hover(function(){ alert("You entered p1!"); }, function(){ alert("Bye! You now leave p1!");}); |
|
1
2
3
|
$("input").focus(function(){ $(this).css("background-color","#cccccc");}); |
|
1
2
3
|
$("input").blur(function(){ $(this).css("background-color","#ffffff");}); |
技术应用
学习指南
语言评价
| 3.返回顶部 |
| 4.返回顶部 |
| 5.返回顶部 |
| 6.返回顶部 |
![]() |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
JS-jQuery:百科的更多相关文章
- js,jquery,css,html5特效
包含js,jquery,css,html5特效,源代码 本文地址:http://www.cnblogs.com/roucheng/p/texiao.html 2017新年快乐特效 jQuery最新最全 ...
- Js/Jquery获取iframe中的元素
转载: Js/Jquery获取iframe中的元素 - - ITeye技术网站http://java-my-life.iteye.com/blog/1275205 在web开发中,经常会用到ifram ...
- js/jquery/html前端开发常用到代码片段
1.IE条件注释 条件注释简介 IE中的条件注释(Conditional comments)对IE的版本和IE非IE有优秀的区分能力,是WEB设计中常用的hack方法.条件注释只能用于IE5以上,IE ...
- js jquery 页面加载初始化方法
js jquery 页面加载初始化方法 一.js页面加载初始化方法 // 1.在body里面写初始化方法. <body onload='init()'> </body> < ...
- js jquery 选择器总结
js jquery 选择器总结 一.原始JS选择器. id选择器:document.getElementById("test"); name选择器:document.getElem ...
- [JS]jQuery,javascript获得网页的高度和宽度
[JS]jQuery,javascript获得网页的高度和宽度网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeigh ...
- spring访问静态资源出错,No mapping found for HTTP request with URI xxx/resources/js/jquery.min.js...
问题:spring访问静态资源出错,No mapping found for HTTP request with URI xxx/resources/js/jquery.min.js... web.x ...
- js jquery中 的数据类型
任何一门语言, buguan 是动态的, 还是像C语言的, 都有严格的 类型 "概念的", 这个是由于 编译器和解释器要求的, 需要的. 所以在是使用像 js, jquey ,ph ...
- paip.提升效率--数据绑定到table原理和流程Angular js jquery实现
paip.提升效率--数据绑定到table原理和流程Angular js jquery实现 html #--keyword 1 #---原理和流程 1 #----jq实现的代码 1 #-----An ...
- JS Jquery去除数组重复元素
js jquery去除数组中的重复元素 第一种:$.unique() 第二种: for(var i = 0,len = totalArray_line.length;i < len;i++) { ...
随机推荐
- JSON的android应用实例
JSON的android应用实例 Json在线解析器 下面是直接通过JUnit来测试直接通过API来解析Json数据 1.普通键值对象 2.Json数组对象 3.Json数组对象
- (65)C# 任务
1.启动任务 //Framework4.5新增的Task.Run开启一个任务,Run方法中传入一个Action委托 Task.Run(()=> { Thread.Sleep(); Console ...
- CSS属性去除图片链接时的虚线框
CSS 之outline (轮廓)是绘制于元素周围的一条线,位于边框边缘的外围,可起到突出元素的作用.outline 属性是一个简写属性,用于设置元素周围的轮廓线.注释:轮廓线不会占据空间,也不一定是 ...
- Html5 学习笔记 【PC固定布局】 实战6 咨询页面
最终效果: Html页面代码: <!DOCTYPE html> <html lang="zh-cn"> <head> <meta char ...
- 简单DP入门(二) 最长上升子序列及其优化
最长上升子序列解决问题: 有N个数,求出它最长的上升子序列并输出长度. 在题里不会讲的这么直白,这个算法往往会与其他的算法混在一起使用. 在这篇文章中不会出现其他的例题,为了让大家更好的理解,我只会对 ...
- upc组队赛14 Floating-Point Hazard【求导】
Floating-Point Hazard 题目描述 Given the value of low, high you will have to find the value of the follo ...
- python 装饰器 对类和函数的装饰
#装饰器:对类或者函数进行功能的扩展 很多需要缩进的没有进行缩进'''#第一步:基本函数def laxi(): print('拉屎')#调用函数laxi()laxi() print('======= ...
- python外星人入侵(游戏开发)
实现的项目要求: 1.外星人游戏添加飞船上下移动功能: 2.为游戏添加背景音乐: 3.在玩家得分.最高得分.玩家等级前添加"Score"."High Score" ...
- 基于vue2.0打造移动商城页面实践 vue实现商城购物车功能 基于Vue、Vuex、Vue-router实现的购物商城(原生切换动画)效果
基于vue2.0打造移动商城页面实践 地址:https://www.jianshu.com/p/2129bc4d40e9 vue实现商城购物车功能 地址:http://www.jb51.net/art ...
- RabbitMq--3--案例
https://blog.csdn.net/hellozpc/article/details/81436980
