core.min.js:65 Uncaught TypeError: Cannot read property 'createDocumentFragment' of undefined
at rt (core.min.js:65)
at Function.buildFragment (core.min.js:65)
at h.fn.init.domManip (core.min.js:65)
at h.fn.init.append (core.min.js:65)
at h.fn.init.h.fn.<computed> [as appendTo] (core.min.js:65)
at Object.hint (core.min.js:65)
at n.<anonymous> (mainActivity.js:1033)
at n.fire (core.min.js:65)
at n.fireEvent (core.min.js:65)
at n.i.onChanged (comp.min.js:144)
校验类型的代码为:
//限制附件上传的格式
var uploader = this.comp("attachmentPC1").uploader;
uploader.on('onFileSelected', function(event) {
var fileName = event.file.name.split(".")[1];
if (fileName) {
if (fileName.toLowerCase() !== "pdf") {
justep.Util.hint("只能上传pdf文件", {
parent : parent
});
event.cancel = true;
}
}
});