1. ★  $(document).on('click', 'button[name=closeLayerOut2]', function () { ...... });
  2.   $(document).on('click', 'button[name=form-reset-button],a[name=form-reset-button]', function () { ...... });
  3.   $("form[id=importClassInfoForm] input[type=file]").on("change", function () { ...... });
  4.   $('form[id=qualityEdit-edit-form] select[id = selUndertaker]').attr("disabled", true);
  5.   $(document).on('click', '#saveBtu_add', function () { ...... });
  6.   $('a.deleteTrainingClassBtn').on('click', function () { ...... });
  7.  
  8. ★ <a href="javascript:void(0);" onclick="downFile('${c.uploadRateNoticeId}')" class="link">下载</a>
  9.   downFile = function (id) {
  10.     window.location.href = SPICA_MODULE + "/signupClassInfoController/downloadData/" + id;
  11.   }
  12. $(".className_scan_class").bind("click", function () { //适用于table 每一行的动态点击事件
  13.     //$(this).attr('data_plan_id');
  14.   });
  15.   <td title="${obj.className}">
  16.     <div data-plan-id="${obj.id}" id="className_scan_id" class="link specialTopic superPart className_scan_class">${obj.className}</div>
  17.   </td>
  18. 准确获取控件val(或者赋值):
  19.   var aa0 = $('form#signupAdd-edit-form input#classNum_add').val();
  20.   var bb0 = $('form[id=signupAdd-edit-form] input[id=classNum_add]').val();
  21.   var cc1 = $(' input[id=classNum_add]').val();
  22.   var cc2 = $(' input#classNum_add').val();
  23.   var cc3 = $(' #classNum_add').val();
  24.  
  25. button .click无法绑定事件的解决:
  26. <button type="button" class="dialogBtu_add"><i class="fa fa-save"></i>确认</button>
  27. //$('button.dialogBtu_add').bind("click", dialogBtu_add); //不可以
  28. //$("a.addManInfoBtn").bind("click", addAndUpdateLayer0());//不可以:刷新界面会自动 触发事件(art-template)!
  29. $(document).on('click', '.dialogBtu_add', dialogBtu_add);// 可以

jQuery事件绑定汇总(包括一些无法获取事件的问题)的更多相关文章

  1. 事件绑定的快捷方式 利on进行事件绑定的几种情况

    [事件绑定快捷方式]$("button:first").click(function(){ alert(1); }); [使用on绑定事件] ① 使用on进行单事件绑定 $(&qu ...

  2. jQuery使用(七):事件绑定与取消,及自定事件的实现原理

    实例方法: on() one() off() trigger() hover() 一.绑定事件与jQuery事件委托 $(selector).eventType(fn); $(selector).on ...

  3. jQuery的事件绑定命名空间

    jQuery的bind的函数在实际应用中用的不是特别多,只是他可以绑定一个事件,但不会即时触发,也可以通过unbind来解除绑定.在没有看到这篇文章之前,我一直不知道原来bind也可以有命名空间.事实 ...

  4. JQuery实现click事件绑定与触发方法分析

    原生JS通过什么方法绑定click事件? 原生js有一下三种方法为DOM对象绑定click事件, 第一种,在html中添加 onclick属性,在此属性中添加要绑定的事件函数,如下, 这种方法为htm ...

  5. jQuery之元素操作及事件绑定

    1.操作元素之属性: ①attr读:("selector").attr("属性名"):=>getAttribute("属性名"):改: ...

  6. jQuery中的事件绑定的几种方式

    jQuery目前有on(),bind(),delegate(),live()四种绑定方式,但是随着版本的不断更新,有的方式也相应的被淘汰掉 [band()方式绑定] 3.0版本之前的绑定方式比较常用的 ...

  7. 关于Jquery事件绑定的心得

    今日在工作的时候,遇上了一些和事件绑定有关的问题无法解决,于是在网上找到了以下资料,稍加整理了下. 对于事件绑定,jQuery的 bind / unbind 大多数时候可能并不会用到,取而代之的是直接 ...

  8. jquery 深入学习笔记之中的一个 (事件绑定)

    [jquery 事件绑定] 1.加入元素事件绑定 (1) 加入事件为当前元素 $('p').on('click',function(){ //code here ... }); (2) 加入事件为未来 ...

  9. javascript中通过匿名函数进行事件绑定

随机推荐

  1. Contiguous Array with Equal Number of 0 & 1

    2018-07-08 13:24:31 问题描述: 问题求解: 问题规模已经给出是50000量级,显然只能是O(n),至多O(nlogn)的复杂度.本题使用DP和滑动数组都比较棘手,这里给出的方案是p ...

  2. 【Android】查看包名和首启动activity

    工具:aapt 位置:$ANDROID_HOME/build-tools/版本号/aapt 需要配置环境变量才能使用 aapt dump badging XXXapk 输出信息中重要的有: packa ...

  3. Many Easy Problem

    转自hwk0518,不胜感谢,侵删.

  4. CF-499div2-E-裴蜀定理

    E. Border time limit per test 1 second memory limit per test 256 megabytes input standard input outp ...

  5. 使用a标签实现软件下载及下载量统计

    通常最简单的软件下载就是采用如下方式: <a id="welcomeMiddleBtn" href="${basePath}/files/client/instal ...

  6. 使用路径arc-奥运五环

    <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>    < ...

  7. 最应该注意的Oracle版本之一

    最近以来,两个用户的库接连出现问题,经过查阅资料和分析,确定为数据库bug所致,其实,早在很久前,也遭遇过这个版本的类似bug,当时似乎还惊动了原厂的技术人员,后来确定为这个版本的bug,这个版本就是 ...

  8. zk客户端的ClientCnxn类

    ClientCnxn是客户端的类:该类管理zk客户端的socket io,维持一个可用服务器的列表. //ClientCnxn类 private final LinkedList<Packet& ...

  9. Filesystem has been set read-only problem.

    case: when system is running well ,sudden tf became read-only; analyze: read the kernel log using dm ...

  10. bzoj1599

    题解: 暴力枚举每一种可能性 代码: #include<bits/stdc++.h> using namespace std; int s1,s2,s3,ans,num; int main ...