汪和康

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年5月25日

摘要: /// <reference path="jquery-1.4.1.min.js" />$(function (event) { //$("tbody tr:even").css("background-color", "#ece9d8"); $(document).keydown(function (event) { if (event.keyCode == 13) { $('form').each(function () { event.preventDefault(); }); } 阅读全文
posted @ 2012-05-25 23:22 Supe 阅读(2664) 评论(0) 推荐(0)

摘要: 使用jquery拦截回车事件$(document).keydown(function(event) { if (event.keyCode == 13) { $('form').each(function() { event.preventDefault(); }); }}); 阅读全文
posted @ 2012-05-25 22:31 Supe 阅读(276) 评论(0) 推荐(0)