How to use find function in YUI3? And how to find meta tag list?

谁说胖子不能爱 提交于 2019-12-04 22:02:50

You can find the collection of all matched elements like this.

YUI().use('node', function(Y){
var myElements = Y.all('.classname');
});

If you are using the io module the user guides may help.

if the format of your response is something like json, you would include the json module and parse the responseText to json and then just treat it as an object. If it's xml that you get back use the responseXML returned via the io call and use the native xml dom functions. (The examples linked on the user guide shows just this type of work)

Also, if you are used to jQuery try the rosettastone site

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!