你这个excel应该时从其他地方下载下来的,里面格式有问题,由单元格内容自带tab字符之类的,把下面的js复制到web属性的填报属性的加载结束事件里面试一下:
FR.WritePane.prototype.dealWithPasteContent = function(value) {
//查找复制文本中是否有\t"\t,有的话将其替换成\t"
//if (value.match('\t"\t') ) {
if (value.match('"\t ') ) {
//先去除开头的tab符
value = value.replace(/"\t /g,'"');
//去除所有不可见字符
//value = value.replace(/\s*/g,'');
//value = value.replace(/\t"\t/g,'\t"');
}
if(value.match('\t"\t')){
//然后去除结尾的tab符
value = value.replace(/\t"\t/g,'"\t');
}
return this._parsePasteContentToArray(value);
}
FR.WritePane.prototype.cellPasteCheck = function(cell, cev, editorO) {
return cev !== null && !editorO.disabled && editorO.editable !== false && editorO.directEdit !== false;
}