-6
(function() {
var a = document.createElement('a');
var mref = 'http://www.someprivatelink.net';
var linkText = document.createTextNode(title1);
var title1 = $('#node-264152').find('.audio-description').html();
alert(title1);
a.appendChild(linkText);
a.title = title1;
a.href = mref;
document.body.appendChild(a);
})();
我使用這個腳本的下載鏈接添加到我的網頁至極的bottem並不是永久的,所以我通過控制檯輸入它谷歌瀏覽器。jQuery也無法給出正確的輸出,但給這些
ID和類對於我需要提取的值是正確的,我添加了警報以檢查錯誤是在HTML中還是在javascript中。
在頁面的bottem輸出具有的「未定義」的值,而它必須是「登錄體一起移動的水2」
但警報確實顯示(screenshot)此消息消息前後幾個boxxes,我認爲這是導致未定義的錯誤。
有什麼解決方案我的var可以轉換成只有文本?
由於提前,Tjalle
哇,只是現在看它的線條,看起來愚蠢的我現在我終於看到它,謝謝! – tjallo