Adding several aspects to a document:
var props = new Array(1);
props['cm:template'] = document.nodeRef;
document.addAspect('cm:templatable', props);
props = new Array(1);
props['cm:lockIsDeep'] = true;
document.addAspect('cm:lockable', props);
props = new Array(1);
props['cm:hits'] = 1;
document.addAspect('cm:countable', props);
文档更新时间: 2020-02-16 15:47 作者:凌云文档