不用js控件有自带的
---------
编辑后事件
var value =this.getValue()
if(value.length==0){
alert('该单元格不能为空')
}
其实不需要写JS,直接勾选不允许为空就好了