這裏是我的前一個問題的HTML:Filter new content to only display specific divs複製變量內外部鏈接
我想獲得和來自外部網頁,複製變量裏面的一些內容。 要執行它,我使用jquery.get函數。
// This code is adding to the div the content
$('.result').html(data);
我想保存一個變量裏面的內容才能夠得到的只是,我想
$.get('ajax/test.html', function(data) {
// Add to the <div class="result"> the html of data
$('.result').html(data);
// I would like some thing like this
var result = the html of data
});
感謝您的幫助
到底是什麼的問題/問題就在這裏? – 2013-05-01 16:09:25
不客氣! – musefan 2013-05-01 16:09:43
我想獲得數據的html代碼的變量結果: var result = .html(data); – Romain 2013-05-01 16:10:50