English 中文(简体)
A. 在YUI 3中形成文件碎片
原标题:Creating a document fragment in YUI 3
  • 时间:2010-12-10 05:01:27
  •  标签:
  • dom
  • yui
  • yui3

我早就在寻找“YUI3”的笔试,但我看不出如何制造文件碎片。 我是否应该使用该文件本身? 我想把它当作一个YUI Node目标。

最佳回答

如果你想制造新的空洞 do,这应当做到:

var frag = Y.all([]).toFrag();

http://www.ohchr.org。

问题回答

我认为,这相当于Luke的回答(我只是认为它没有什么可读之处)。

var frag = Y.one(document.createDocumentFragment());




相关问题
PHP DOM - accessing newly added nodes

I use the following to get a html document into DOM: $dom = new domDocument( 1.0 , utf-8 ); $dom->loadHTML($html) and then I add some new content to an element in the html: $element = $dom->...

XML DOM parsing br tag

I need to parse a xml string to obtain the xml DOM, the problem I m facing is with the self closing html tag like <br /> giving me the error of Tag mismatch expected </br>. I m aware this ...

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:...

热门标签