I have met some errors in recent years, one of them which impress me most. It happend when I try to finish a web project with javascript for my web final project.

In a web project, we often use 'button' to trigger some events, some times it is very simple, we just write like this, it is enough, we don't need parameters.

But, if we try to use the button to select the object we have selected before, we don't want to use the selector again in the binded-function, like this.

At first, I wrote the code like this,

$(obj).click(dele(obj2));

Then, there is an error, the most upset me was the Click function always autorun without any click!

I used Bind() function, used global variables as the parameter, no matter how I correct the parameter, the error always happen. It cost too much time!

Finally, I had solved the problem, because I found the reason that I shouldn't send the parameter to a callback function use a normal way!

The most important thing I learned from this error is I should figure out something totally before I used it.

最新文章

  1. 最简单的访问google的办法
  2. mousewheel
  3. C#的图像处理方法--(作者:http://conner-wang.spaces.live.com转载)
  4. SnowNLP:一个处理中文文本的 Python 类库
  5. Direct3D11学习:(一)开发环境配置
  6. Ubuntu 14.04 LTS 安装 VNC Viewer
  7. poi导出Excel报表多表头双层表头、合并单元格
  8. Curse of Dimensionality
  9. 理解Ajax
  10. Computer Transformation(规律,大数打表)
  11. index.do为后缀的是什么开发语言? 有什么技术特点?
  12. b.控制结构
  13. 简单搭建SpringMVC框架详解
  14. C# 曲线上的点(二) 获取距离最近的点
  15. go学习笔记-简述
  16. ANSYS稳态热分析
  17. 数据统计 任务的一点感想 , sql 使用中的坑。
  18. CF 987
  19. Linux基础命令---文本显示tac
  20. php小数加减精度问题,比特币计算精度问题

热门文章

  1. Mac下常用快捷键(转)
  2. JVM-ClassLoader类加载器
  3. ECharts概念学习系列之ECharts是什么?
  4. JavaScript数据结构-8.双向链表
  5. 关系型数据库MySQL多实例
  6. Comet技术在Java Web中的应用
  7. 10w定时任务,如何高效触发超时
  8. Ruby(1):入门
  9. C# 实现将listview中已经显示的数据导出到Access 数据库
  10. 最近在研究asp.net mvc