var node = Y.one('#main');
var item = Y.Node.create('<p>test</p>');//创造节点
node.appendChild(item);//加入
Y.one("#main").setContent("<h1>Hello, <em>World</em>!</h1>");//设置节点内容,会替换原来节点中存在的内容
node.append("<p>This is the end, beautiful friend, the end.</p>");//直接这样也可以把创造的节点加入到指定节点下
??
?