jquery常用事件
来源:互联网 发布:mac 安装sass 编辑:程序博客网 时间:2024/06/14 16:40
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title><style type="text/css">#e02{border: 1px solid #000000; height: 200px; width: 200px;}</style><script type="text/javascript" src="../js/jquery-1.8.3.js"></script><script type="text/javascript">$(document).ready(function(){$("#e01").blur(function(){$("#textMsg").html("文本框失去焦点:blur");}).focus(function(){$("#textMsg").html("文本框获得焦点:focus");}).keydown(function(){$("#textMsg").append("键盘按下:keydown");}).keypress(function(event){$("#textMsg").append("键盘按下:keypress");}).keyup(function(){$("#textMsg").append("键盘按下:keyup");}).select(function(event){//支持谷歌var sub = $(this).val().substring(event.target.selectionStart,event.target.selectionEnd);$("#textMsg").html("文本内容被选中:select , " + sub);});var i = 0;$("#e02").mouseover(function(){$("#divMsg").html("鼠标移上:mouseover");}).mousemove(function(){$("#divMsg").html("鼠标移动:mousemove , " + i++ );}).mouseout(function(){$("#divMsg").html("鼠标移出:mouseout");}).mousedown(function(){$("#divMsg").html("鼠标按下:mousedown");}).mouseup(function(){$("#divMsg").html("鼠标弹起:mouseup");});$("#e03").click(function(){$("#buttonMsg").html("单击:click");}).dblclick(function(){$("#buttonMsg").html("双击:dblclick");});});</script></head><body><input id="e01" type="text" /><span id="textMsg"></span> <br/><hr/><div id="e02" ></div><span id="divMsg"></span> <br/><hr/><input id="e03" type="button" value="可以点击"/><span id="buttonMsg"></span> <br/></body></html>
0 0
- jquery常用事件
- 常用JQUERY事件
- Jquery常用事件
- jQuery常用事件汇总
- jquery随笔--常用事件
- jquery常用事件记录
- jQuery 常用触发事件
- jQuery常用事件
- jquery常用事件
- jQuery常用事件处理
- jQuery 常用DOM事件
- jquery常用事件
- jQuery的常用事件
- JQuery中的常用事件
- jquery常用事件
- jquery常用事件
- jquery中常用的事件
- jquery常用事件及特效
- C# 连接Oracle 11g,(注:可少走弯路)
- POJ3673Cow Multiplication(水)
- LeetCode-273. Integer to English Words
- Leetcode 11. Container With Most Water The Solution of Python
- 装船问题
- jquery常用事件
- 515. Find Largest Value in Each Tree Row
- C++ 多继承和虚继承的内存布局
- linux下nfs配置
- myeclipse最常用的快捷键
- 欢迎使用CSDN-markdown编辑器
- Android开源库和项目
- POJ 2391 二分,Floyd, 网络最大流
- BeautifulSoup模块学习