Changes the mimetype of a document after setting the content:

var file = userhome.createFile('testfile.html');
file.content = 'some HTML here';
file.mimetype = 'text/html';
文档更新时间: 2020-02-16 16:03   作者:凌云文档