zoukankan      html  css  js  c++  java
  • js bind

    1、bind() 方法为被选元素添加一个或多个事件处理程序,并规定事件发生时运行的函数。

    2、语法:$(selector).bind(event,data,function)  

                   event必须可以是click、focus、blur、propertychange  等事件

                   data为可选,规定传递到函数的额外数据

                   function必须。规定当事件发生时运行的函数。

    3、例子:

        $("#refreshNode").bind("click", {type:"refresh", silent:false}, refreshNode);

  • 相关阅读:
    [bzoj4364] [IOI2014]wall砖墙
    [bzoj3064] [Tyvj 1518] CPU监控
    [bzoj3434] [WC2014]时空穿梭
    ASP.NET
    ASP.NET
    ASP.NET
    ASP.NET
    ASP.NET
    ASP.NET
    MSSQL
  • 原文地址:https://www.cnblogs.com/sunfenqing/p/7724685.html
Copyright © 2011-2022 走看看