- 注册时间
- 2013-8-5
- 最后登录
- 2013-8-20
- 阅读权限
- 10
- 积分
- 164
- 精华
- 0
- 帖子
- 59
|
var data = grid.getData();
for(var i=0,l=data.length; i<l; i++){
var row = data[i];
if(row.accountAmount == "" || row.accountAmount == null || row.accountAmount == 0){
mini.alert('第'+(i+1)+'行的到账金额未填写','系统提示');
return true;
}
if(row.receiveDate == "" || row.receiveDate == null){
mini.alert('第'+(i+1)+'行的到账时间未选择','系统提示');
return true;
}
if(row.ownUnit == "" || row.ownUnit == null){
mini.alert('第'+(i+1)+'行的归属中心未填写','系统提示');
return true;
}
if(row.remark == "" || row.remark == null){
mini.alert('第'+(i+1)+'行的备注未填写','系统提示');
return true;
}
}
我想,在某个元素上聚焦,如何加focus()?
row.focus() 不对 row.accountAmount.focus();也不对? 要怎么写?
|
|