首页 > Web开发 > 详细

jQuery Event

时间:2014-08-12 17:03:24      阅读:337      评论:0      收藏:0      [点我收藏+]

Example:

1
2
3
4
5
//Create a new jQuery.Event object without the "new" operator.
var e = jQuery.Event( "click" );
 
// trigger an artificial click event
jQuery( "body" ).trigger( e );

 

Example:

1
2
3
4
5
// Create a new jQuery.Event object with specified event properties.
var e = jQuery.Event( "keydown", { keyCode: 64 } );
 
// trigger an artificial keydown event with keyCode 64
jQuery( "body" ).trigger( e );

jQuery Event,布布扣,bubuko.com

jQuery Event

原文:http://www.cnblogs.com/jxry/p/3907511.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!