久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

TypeError:無法讀取 null 的屬性“單擊"

TypeError: Cannot read property #39;click#39; of null(TypeError:無法讀取 null 的屬性“單擊)
本文介紹了TypeError:無法讀取 null 的屬性“單擊"的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我一直在使用這些代碼在 Twitter 上大量關注/取消關注/收藏/取消收藏;

I have been mass following / unfollowing / favoriting / unfavoriting on twitter with these codes ;

$('button.follow-button').click();
$('button.ProfileTweet-actionButtonUndo').click();
$('a.favorite').click();

我在網上找到了一些不工作的代碼并嘗試修復,所以它們現在幾乎可以工作了.唯一的事情就是去谷歌瀏覽器上的頁面,按 f12 ,打開控制臺并運行命令.

I found some not-working codes online and tried to fix, so they are nearly working now. The only thing is to go to the page on google chrome, press f12 , open console and run the command.

所以現在,我想在 Vine 中使用相同的系統.谷歌瀏覽器有一個擴展來使用 vine ( https://client.vineclient.com/ ) 和我正在嘗試使用它,因為原始網頁( vine.co )甚至沒有用.

So now, I wanted to use the same system in Vine. There"s an extension for google chrome to use vine ( https://client.vineclient.com/ ) and I am trying to use it because original webpage ( vine.co ) is not even useful.

twitter 和this 的唯一區別是,在 vine 客戶端的 ^followers^ 部分中,頁面中會出現一個彈出窗口.而且我不知道它是否檢測到按鈕.

The only difference between twitter and this, is that, in vine client for ^followers^ section, an pop-up comes in the page. And I don!t know if it detects the buttons.

所以,我試圖從原始頁面點擊的按鈕的代碼,(我使用開發人員工具/元素獲取它)

So , the code of the button I am trying to click from original page , ( I took it using developer tools / elements )

<div class="user">
<img alt="Tu??e Nur TEK?N" class="avatar" src="http://v.cdn.vine.co/r/avatars/3C2E4F40F11066473630650847232_pic-r-1397241239141e51579937f.jpg.jpg?versionId=ttIz4CExCjW_4TEnxYbnehPPpXRyzMco">
<div class="wrapper">
<a class="username" 
>
Tu??e Nur TEK?N
</a>
</div>
<a class="button follow" data-id="1066473613911363584">
<i class="icon">
</i>
</a>
</div>

要點擊的東西在這里:

當我手動點擊時,它會變成這樣:

When I manually click, it changes into this :

<a class="button unfollow" data-id="1066473613911363584"><i class="icon"></i></a>

以及我用來嘗試點擊的命令

And the command I use to try to click

$(".a.follow").click();

我得到的錯誤,

TypeError: Cannot read property 'click' of null

我該如何解決這個問題?順便說一句,在這些代碼中,我實際上找不到任何 ^button^ 代碼..謝謝!

How can I fix that? By the way, in these codes, I couldn"t find actually any ^button^ codes.. Thanks!

更新

  1. http://prntscr.com/3pmo2i
  2. http://prntscr.com/3pmoyk
  3. http://prntscr.com/3pmpym

推薦答案

我遇到了這個問題,當我從其他地方(例如 Selenium)在網頁上運行 javascript 同時使用開發者工具時.嘗試關閉開發者工具并運行腳本.

I had encountered this problem, when I run javascript on the webpage from elsewhere (eg. Selenium) while simultaneously using Developer Tools. Try closing Developer Tools and run the script.

這篇關于TypeError:無法讀取 null 的屬性“單擊"的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創建子窗口時如何修復 BrowserWindow 不是構造函數錯誤) - IT屋-程序員軟件開發技術
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
主站蜘蛛池模板: 欧美日韩精品在线一区 | 一级在线视频 | 妞干网视频 | 日韩在线中文 | 亚洲精品在线免费播放 | 亚洲成人日韩 | 在线视频成人 | 国产午夜精品一区二区三区嫩草 | 国产一区二区 | 欧美性jizz18性欧美 | 亚洲精品99 | 久久久久国产一区二区三区四区 | 狠狠入ady亚洲精品经典电影 | 精品毛片在线观看 | 国产网站久久 | 国产免费人成xvideos视频 | www.99热.com| 麻豆天堂| 在线观看成人免费视频 | 日韩无| 免费一区二区 | 成人欧美一区二区三区视频xxx | 国产一二三区免费视频 | 国产综合精品 | 91精品国产综合久久久久久 | 国产精品九九九 | 91欧美 | 日韩视频一级 | 亚洲欧美日韩在线一区二区 | 精品一区二区在线观看 | 日韩一区二区在线观看 | 日本手机在线 | 欧美一级淫片免费视频黄 | 91精品国产91久久久久游泳池 | 国产成人福利视频 | 国产精品久久久久久久久久久新郎 | 黄色小视频入口 | 欧美一区二区二区 | 看av网址| 亚洲综合首页 | 狠狠综合久久av一区二区老牛 |