<html>
   <head>
     <script type="text/javascript" src="yui-min.js"></script>
   </head>
   <div id="demo" style="display:none;">
       title1:'www.baidu.com",title2:'http://www.baidu.com',title3:'www.baidu.com'
   </div>
   <div id="aa"></div>
<script type="text/javascript"> 
YUI({ filter: 'raw' }).use("yui", "tabview", "gallery-widget-io", function(Y) {
    var str = document.getElementById("demo").innerHTML;
    arr = str.split(",");
    TabIO = function(config) {
        TabIO.superclass.constructor.apply(this, arguments); 
    };
 
    Y.extend(TabIO, Y.Plugin.WidgetIO, {
        initializer: function() {
            var tab = this.get('host');
            tab.on('selectedChange', this.afterSelectedChange);
        },
 
        afterSelectedChange: function(e) {
            if (e.newVal) { 
                this.io.refresh();
            }
        },
 
        setContent: function(content) {
            var tab = this.get('host');
            tab.set('content', content);
        },
 
        _toggleLoadingClass: function(add) {
            this.get('host').get('panelNode')
                .toggleClass(this.get('host').getClassName('loading'), add);
        }
 
    }, {
        NAME: 'tabIO',
        NS: 'io'
    });
 
    var tabview = new Y.TabView(); 
  for(var i in arr){
    var arr1 = arr[i].split(":");
    var label = arr1[0];       
    var src = arr1[1]; 
        tabview.add({
            label: label,
            plugins: [{
                fn: TabIO, 
                cfg: {
                    uri: src
                }
            }]
        });
   }
  
    tabview.render("#aa");
});
</script>
 
</body>
</html>
</html>
请问为什么无法加载数据,总是说Failed to retrieve content?急!