0
我要選擇所有鏈接(我想保存的a
標籤到文件href
),然後保存到一個文本文件保存爲文本文件:選擇頁面上的所有鏈接,並使用jquery
$('a.show').each(
function(){
//save into text file
// file=$(this).attr('href'); // something like this
}
);
我怎樣才能去做?
請參考[如何使用js保存文件](http://stackoverflow.com/questions/13405129/javascript-create-and-save-file) –
Is .show class comman to all a –
@Somnath yes all a有同一班 –