uncaught TypeError:cannot read property "reset" of undefined;

form:{
  //表单重制
  reset : function(formId){
     var currentId = "importID";
     $("#"+currentId")[0].reset();//报错
  }  
}

错误:uncaught TypeError:cannot read property "reset" of undefined;

这段代码不晓得为啥会报错?其他模块调用都没有问题?谢谢

阅读 2.4k
1 个回答

莫非你是想

 var currentId = "importID";
 $("#"+currentId)[0].reset();/
推荐问题