2 回答
            1        
        
		
你可以试试这个,
    $(document).ready(function(){           
        $("title").text($("#postheading").text());  
    }); 
    于 2013-11-04T08:26:44.547   回答
    
    
            0        
        
		
首先,您需要检索块#postheading内的值document.ready。其次,可以使用nativedocument.title来设置页面标题。尝试这个:
$(document).ready(function() {
    var name = $("#postheading").text();
    document.title = name;
}); 
    于 2013-11-04T08:16:20.127   回答