我想在JavaScript中为同一个输入框添加多个onchange函数。
类似于以下代码:
this.el = document.getElementById(this.docID);
if(x==y)
{
this.el.onchange += function(){ // some code }
}
if(a==b)
{
this.el.onchange += function(){ // some code }
}