这是一个创建于 4424 天前的主题,其中的信息可能已经有所发展或是发生改变。
    
    
    
        
        $.ajax({
			type: 'get',
			url: location.href.split('?')[0]+'?t='+(new Date()).valueOf(),
			timeout: 9999,
			dataType: 'html',
			beforeSend: function(XMLHttpRequest) {
				XMLHttpRequest.setRequestHeader('request-type', 'loadList');
			},
			success: function(html) {
				if(typeof html != 'undefined') {
					document.title = html.match(/<title>(.*)<\/title>/)[1];
					console.log($(html).find('div'));//这里不返回id的div小盒子
					console.log($(html).find('#logo'));//这里也找不到logo这个id
				}
			},
			error: function() {
				location.replace(location.href.split('?')[0]);
			}
		});
//-----------------------------------------------------//
不对。是找不到body的子孙中第一层关系的div,这个是怎么回事呢?
        
     
    
    
    
    
 
    2 条回复  •  1970-01-01 08:00:00 +08:00
     
    
    
        
        
        
        
            
                  | 
                 | 
                     1 
                    
                    simple_plan      2013-09-24 00:11:12 +08:00 via Android 
                    
                    会不会id重复了 
                 |