摘要:1.常用函数function(evt) { var e = (evt) ? evt : window.event; if (window.event) { e.cancelBubble = true; } else { e.stopPropagation(); }阻止事件function(ele, e, call) { if (window.addEventListener) ele.addEventListener(e, call, false); else ele.attachEvent("on" + e, call); }添加事件$("#addClassName").keydown(fu
阅读全文
摘要:$("#addClassName").keydown(function(e) { if (e.keyCode == 13) { e.stopPropagation(); //阻止事件冒泡 e.preventDefault(); } }).keyup(function(e) { if (e.keyCode == 13) { $("#addClassBtn").click(); } });
阅读全文
摘要:<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/User.Master" Inherits="System.Web.Mvc.ViewPage<AqiooViewModelItem<Aqioo.Modules.Consult.ViewModels.PubArticleModel>>" %>...
阅读全文
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Pages_Module_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...
阅读全文
摘要:var cssText = ”font-weight:bold;color:red;”//下面写法用于firefox类型浏览器element.setAttribute(“style”,cssText);//下面写法用于IE类型浏览器element.style.cssText = cssText;<scriptlanguage="JavaScri...
阅读全文
摘要:http://www.planeart.cn/downs/artDialog/ 不依赖其他库http://www.javaeye.com/topic/541141 主题:基于jquery和mini_magick的图片裁剪 http://odyniec.net/projects/imgareaselect/examples-advanced.htmlhttp://www.google.com.hk/...
阅读全文