function getViews(){
$.get (
"http://www.roblox.com/User.aspx?ID=16",
function parse(data) {
var userviews = $(data).find("#ctl00_cphRoblox_rbxUserStatisticsPane_lProfileViewsStatistics").html();
alert(userviews);
}
);
}
getViews();
我基本上希望它做同樣的事情,下面的線,除了有更多的我的jQuery的功能,我沒有給,因爲我知道,工作原理:爲什麼沒有找到元素的innerHTML?
alert(document.getElementById('ctl00_cphRoblox_rbxUserStatisticsPane_lProfileViewsStatistics').innerHTML)
什麼是數據的價值? – acdcjunior
對我來說,我的工作是「3,781,482」。你是否從網站外部撥打電話並拒絕訪問? –
@ SG86,它提醒'空' – Alex