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